NickJ
Automotive
- Aug 21, 2001
- 1
I am trying to delete named ranges in my VBA routine. I use sheet specific name, however, Excel also adds the name to the non-sheet specific. For example, ActiveWorkbook.Names("test"
.RefersTo is different than Activesheet.Names("test"
.RefersTo
I want to delete the workbook level name w/o deleting the worksheet level one. I can do it when I use the regular excel menu .. Insert, Names, Define and then select the name and hit delete (while on a sheet that does not have a sheet specific name) but I cannot do it in VBA. It always deletes the sheet level name first.
Any help would be appreciated, Thanks
I want to delete the workbook level name w/o deleting the worksheet level one. I can do it when I use the regular excel menu .. Insert, Names, Define and then select the name and hit delete (while on a sheet that does not have a sheet specific name) but I cannot do it in VBA. It always deletes the sheet level name first.
Any help would be appreciated, Thanks