old code which works but loops are bulky.
new code which despite sheet specified ranges tries to set the names to the active sheet.Please Login or Register to view this content.
Is there a way to work this new without using sheet.activate?Please Login or Register to view this content.
Edit: The issue is not that the code fails to execute. It is just not quite doing what I want VPM.Names.Add or DMU.Names.Add create sheet specific named ranges but VPM.Range.CreateNames appears to be ignoring the worksheet and just passing the addresses to the activesheet named ranges.
Bookmarks