I am trying to write a macro to automate something, but I am really struggling to get all the components in place and the syntax correct....
I have a large worksheet that uses lookups to fill in the values based on what is in cell AA1
I have a named range of cells that would be used to set the value of AA1
For each value in the named range I would like the macro to:
Set the value of AA1
Let the sheet calculate
Copy the worksheet to a new file
Change the worksheet name to the same value used to set AA1
So if I had a named range with 5 values I would end up with a separate file with 5 worksheets that were named in line with those 5 values.
Getting it to do the actual process is OK, but I don't know how to set it up so that is uses the named range, and then runs through until all the values in that range have been used....only know that I need to use a loop of some sort....
Hope its clear what I am trying to do...
Thanks
Andy
Bookmarks