Hi All,
I have a VBA code that creates another workbook and copies a sheet to that workbook;
When copying the sheet, all the named ranges associated with it copy over as well.![]()
Please Login or Register to view this content.
I want to delete all named ranges - in the new workbook only - , this is the code I thought would work;
However it doesn't do the trick;![]()
Please Login or Register to view this content.
Run-time error 1004
The name that you have entered is not valid.
Capture.PNG
However the name of the spreadsheet created is "Book1", any ideas?
Thanks
Bookmarks