Recording a macro using cell name

E

ErinC

I want to record a macro that uses the cell name instead
of the address or relative reference. I can go in & edit
the macro afterwards to contain the cell name, but this is
too time consuming for a large project. The reason for
using the cell name is to keep the macro intact even if
the worksheet has rows or columns added later.

Thanks!
~Erin
 
J

jpendegraft

When using the macro recorder, by default, it records the specifi
address rather than a relative reference...

If you would like to submit your post with more information on wha
specifically you are trying to do, perhaps an actionable solution ca
be provided
 
E

ErinC

When I record the macro & go into VisualBasic to edit, it
reads:
Range("C10").Select

I would like it to read:
Range("Dal_Fxd_Jan3").Select

where "Dal_Fxd_Jan3" is the name that I have defined for
the cell C10.

I'd like the macro to record this way, or use replace
function that might do the change throughout the
VisualBasic text instead of going in and manually making
the change.

~Erin
 

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