address of activecell in another sheet

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
 
G

Gary''s Student

Sub get_it()
Set whereami = ActiveSheet
Sheets("Sheet2").Activate
MsgBox (ActiveCell.Address)
whereami.Activate
End Sub
 
S

Stefi

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:
 
H

Henn Sarv

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
 
S

Stefi

Thanks, Henn, I'll give it a try tomorrow!
Stefi


„Henn Sarv†ezt írta:
 

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