S
Souny
Hello all,
I have define names in my Excel file. Of the define names that I have,
there are particular three define names that I want to delete using the code.
The code that I use is as followed:
for each dName in activeworkbook.names
if dName = "Sheet1!DefineName1" or dName="Sheet1!DefineName2" or
dName="'Sheet 2'!DefineName3" then
dName.delete
end if
next dName
Somehow, the above code is not working and is not deleting those define
names. The above code is a portion of my entire code.
Please help.
Thanks.
I have define names in my Excel file. Of the define names that I have,
there are particular three define names that I want to delete using the code.
The code that I use is as followed:
for each dName in activeworkbook.names
if dName = "Sheet1!DefineName1" or dName="Sheet1!DefineName2" or
dName="'Sheet 2'!DefineName3" then
dName.delete
end if
next dName
Somehow, the above code is not working and is not deleting those define
names. The above code is a portion of my entire code.
Please help.
Thanks.