Darchcruise
New Member
- Joined
- Jun 3, 2011
- Messages
- 8
Hi,
Whenever I run the code below in the module the msgbox returns a value, i.e 9 (signifying 9th row).
Sub test()
x = ActiveCell.Row
MsgBox x
End Sub
But whenever I use the immediate window (print x) or the watch window (x) nothing happens . In other words, it doesn't tell me a value (doesn't tell me what row I'm on). Can someone please explain? How can I make it work?
Thanks,
Jason
Whenever I run the code below in the module the msgbox returns a value, i.e 9 (signifying 9th row).
Sub test()
x = ActiveCell.Row
MsgBox x
End Sub
But whenever I use the immediate window (print x) or the watch window (x) nothing happens . In other words, it doesn't tell me a value (doesn't tell me what row I'm on). Can someone please explain? How can I make it work?
Thanks,
Jason