To get the last active cell of an inactive sheet you need to make that sheet
active You can can try something along these lines:
Sub ActiveCellOnSheet2()
Dim ActCell As Range
Dim LastCell As Range
Set ActCell = ActiveCell
With Application
.ScreenUpdating = False
Worksheets(2).Activate
Set LastCell = ActiveCell
.Goto ActCell
.ScreenUpdating = True
End With
MsgBox ActCell.Address(0, 0) & Chr(10) & LastCell.Address(0, 0)
End Sub
--
jb
"joel" wrote:
I can't seem to get the address of the selected cell that is not on the
activesheet. Anybody know how to do this in 2003?
--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=163314
Microsoft Office Help
.