L
LunaMoon
Hi all,
I recorded a very long VBA macro in Excel and the index of ranges is
in letter format,
for example, "M14:M19", etc.
Now I am going to run this macro programmatically and automatically in
a for loop and expand it from the left to the right so I want to
change the "M" in the above example automatically.
But after 26 letters, there will be AA, AB, etc. which is really hard
to program.
Is there a way to adapt the recorded macro (by changing as little as
possible) to more than 26 letters.
I really want to change as little as possible because I spent lots of
time recording this macro and it is really long and it has reference
to addresses such as above everywhere... it's going to be a total mess
if I try to change too much of its addressing...
Thanks!
I recorded a very long VBA macro in Excel and the index of ranges is
in letter format,
for example, "M14:M19", etc.
Now I am going to run this macro programmatically and automatically in
a for loop and expand it from the left to the right so I want to
change the "M" in the above example automatically.
But after 26 letters, there will be AA, AB, etc. which is really hard
to program.
Is there a way to adapt the recorded macro (by changing as little as
possible) to more than 26 letters.
I really want to change as little as possible because I spent lots of
time recording this macro and it is really long and it has reference
to addresses such as above everywhere... it's going to be a total mess
if I try to change too much of its addressing...
Thanks!