Hi,
i am looking for code to delete all named ranges with scope <> Workbook.
Do you have maybe code with?If TypeOf Parent Is Worksheet Then
Best,
Jacek
Hi,
i am looking for code to delete all named ranges with scope <> Workbook.
Do you have maybe code with?If TypeOf Parent Is Worksheet Then
Best,
Jacek
Something like below.
![]()
Sub Demo() Dim nm As Name For Each nm In ThisWorkbook.Names If TypeName(nm.Parent) <> "Workbook" Then nm.Delete End If Next End Sub
"Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
― Robert A. Heinlein
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks