Before I start, thanks to all the people who've already helped me on
this board. Solely because of you, I've managed to complete 10% of a
simple but large project (2 applications so far). I've hunted the
boards now for a couple of hours and haven't found the answer to a very
simple issue. What I want to do is this:
I have a worksheet with data already on it. I want to cut and paste
data from another worksheet. I need to identify the first empty row at
the end of the data and return its row number. I tried the following.
Sub test()
Dim lRowNum As Long
Range("A65536").End(xlUp).Offset(1, 0).Activate
lRowNum = ActiveCell.Row
MsgBox "lRowNum"
End Sub
MsgBox unhelpfully returned "OK" (??!!). What does this mean and how do
I get my row number?
Since when is "OK" a Long? "OK" has more of a Boolean "True" taste and
smell. Why didn't something crash burn and die at lRowNum =
ActiveCell.Row?
Thanks now for any replies.
Yours, again, in frustrated confusion,
Terry R.
Bookmarks