Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
yep, clearly stated in my original post.
-- Gary "Chip Pearson" wrote in message ... Sub Clear_rnge() For Each nm In ThisWorkbook.Names Range(nm).ClearContents Next End Sub This will clear the contents of ALL names, not just those beginning with "ques", as the original poster wanted. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com wrote in message oups.com... I'M SORRY! I had forgotton I had already posted this. Jim's solution gives a Method 'Range' of object '_Global' failed. Chip's solution is almost the same as Jim's. Gary's earlier solution works wonderfully: Sub Clear_rnge() For Each nm In ThisWorkbook.Names Range(nm).ClearContents Next End Sub Please accept my appologies for double posting and thanks for the help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Loop thru named range of second sheet | Excel Programming | |||
Like 123, allow named ranges, and print named ranges | Excel Discussion (Misc queries) | |||
loop through all named ranges | Excel Programming | |||
named ranges - changing ranges with month selected | Excel Programming | |||
Excel VBA - loop columns named AA, AB..etc | Excel Programming |