Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return the active cell reference in A1 notation...

Status
Not open for further replies.

mmorancbt

IS-IT--Management
Nov 11, 2002
367
US
How do I, in an Excel Macro, return the reference to the Active cell?

If am on cell A1, I want it to return "A1" and if I am on J10, I want it to return "J10".

This seems straight forward but I cannot seem to "intellisense" my way through it.

Thanks

Matthew Moran
 
I think "Application.ActiveCell.Address" can do.

Raymond Tse
 

That will produce "$A$1"

If you really need "A1" you can use
[tt]
ActiveCell.Address(False, False)
[/tt]
 
Thanks folks. Right after I posted I figured it out! For some reason, when I "intellensed" I kept passing right by "address". :-o

Thanks again.

Matthew Moran
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top