ActiveCell giving blank value

I

itstome

I am having the following code:

OSHEET.CELLS(2,3).SELECT
MSGBOX OSHEET.CELLS(2,3).VALUE
MSGBOX ACTIVECELL.VALU

The cell is having value, but still, its giving the following error:
ERROR DESCRIPTION: OBJECT REQUIRED 'ACTIVECELL

i did the following also:
MSGBOX ACTIVECEL

but its giving me a blank messagebox

Please someone help me out in this :confused: . Thanks in advanc
 
G

Gary's Student

I usually use MSGBOX() with arguments. Try something like:

Sub temp()
Dim x As Variant
x = Cells(1, 1).Value
MsgBox (x)
End Sub


Good Luck
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top