address of activecell in another sheet

  • Thread starter Thread starter Stefi
  • Start date Start date
S

Stefi

Hi All,

Is there a simple way to retrive the address of activecell in a sheet which
is not the active sheet?

Thanks,
Stefi
 
Sub get_it()
Set whereami = ActiveSheet
Sheets("Sheet2").Activate
MsgBox (ActiveCell.Address)
whereami.Activate
End Sub
 
Thanks! I was not specific enough, I hoped that there is a simpler way than
that. I'm satisfied because there is not an additional lack of my knowledge.
Stefi


„Gary''s Student†ezt írta:
 
Not only :)

Quite funny and useless Worksheet function:

Function ACEll() As String
Application.Volatile (True)
Dim s As Worksheet
Set s = ActiveSheet
ActiveWorkbook.ActiveSheet.Select
ACEll = ActiveSheet.Name + "!" + ActiveCell.Address()
s.Select
End Function

Try - this really works :)

Henn
 
Back
Top