Here is an example of the code I am using: trying to produce a list in Sheet1 for those range names in Source2. I figured if I can at least identify the range names then deleting them would be a snap.
Code: Select all
Sub DeleteNames_In_Source2()
Dim Nm As Name
oCounter = 0
For Each Nm In Sheets("Source2").Names
Sheets("Sheet1").Range("A" & oCounter + 1) = Nm
Application.StatusBar = "Deleting Range Named: " & Nm
oCounter = oCounter + 1
' Nm.Delete 'This line
Next
Application.StatusBar = False
MsgBox "Finished"
End Sub
Thanks for taking a look,
John