D
Dennis
Using XL 2003 & 97
60 % of the time the subroutine below; works fine.
Other times it errors on Name (wanting a definition)
I have not "Dim" ed "Name" previous to this loop thinking that "Name" is a
system thing. This may be my error.
Also, I am not sure how to error trap the routine - if no names exist.
I used "On Error Resume Next" and it still errored
Sub DeleteAllNames() 'ALL sheets
For Each Name In Names
Name.Delete
Next Name
End Sub
Any thoughts?
TIA Dennis
60 % of the time the subroutine below; works fine.
Other times it errors on Name (wanting a definition)
I have not "Dim" ed "Name" previous to this loop thinking that "Name" is a
system thing. This may be my error.
Also, I am not sure how to error trap the routine - if no names exist.
I used "On Error Resume Next" and it still errored
Sub DeleteAllNames() 'ALL sheets
For Each Name In Names
Name.Delete
Next Name
End Sub
Any thoughts?
TIA Dennis