S
STEVE BELL
It would help if you included a copy of the code or replied from the
previous message so that we could more easily see what you are working with.
Now we need to know what you mean by "stopped working" ???
If there are no names on the ActiveSheet than it "will stop working".
Are you getting any Error codes?
Please help us help you by sending as much info as possible...
Here is a copy of the code you previously posted with an added line to Dim
RName. Excel
needs this to define the variable.
Sub CleanDown()
Dim RName As Name
For Each RName In ActiveSheet.Names
RName.Delete
Next RName
End Sub
previous message so that we could more easily see what you are working with.
Now we need to know what you mean by "stopped working" ???
If there are no names on the ActiveSheet than it "will stop working".
Are you getting any Error codes?
Please help us help you by sending as much info as possible...
Here is a copy of the code you previously posted with an added line to Dim
RName. Excel
needs this to define the variable.
Sub CleanDown()
Dim RName As Name
For Each RName In ActiveSheet.Names
RName.Delete
Next RName
End Sub