I am trying to change the name of a sheet to coincide with the contents of a specific cell on a different sheet. In this case the cell will be "A2". The contents of cell A2 is "1002", and this is the problem. I will use this macro over and over and as it is it will always paste the value "1002". How do I make so the macro will copy the contents of the cell at that time and not actually write the value in the macro, but paste what is being copied at the time of running the macro?
Not much of an explanation , but that is the best I can do.
This is the code.
Bookmarks