ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Named Cell References in VBA (https://www.excelbanter.com/excel-discussion-misc-queries/107708-named-cell-references-vba.html)

Michael Excel Dude

Named Cell References in VBA
 
I'd like to be able to refer to the 'name' of a cell, rather than it's location, in VBA macro code. This way, if I move the cell, the macro will know where to look for the value.

Can anyone help?

Thanks.

Bob Umlas

Named Cell References in VBA
 
Range("Herman").Value
Range("Herman").Select
etc.

"Michael Excel Dude" wrote
in message m...

I'd like to be able to refer to the 'name' of a cell, rather than it's
location, in VBA macro code. This way, if I move the cell, the macro
will know where to look for the value.

Can anyone help?

Thanks.




--
Michael Excel Dude




Michael Excel Dude


Excellent! Thanks. This site is awsome.


All times are GMT +1. The time now is 07:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com