Home |
Search |
Today's Posts |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Chip: Thanks for the quick response.
I will try it and let you know how it works. Tom "Chip Pearson" wrote: Try something like Sub AAA() Dim NM As Name For Each NM In ThisWorkbook.Names If StrComp(Left(NM.Name, Len("INPUT_")), "INPUT_", vbTextCompare) = 0 Then ' name begins with "INPUT_". Do something with NM End If Next NM End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel, 10 Years Pearson Software Consulting www.cpearson.com (email on the web site) "OldAuditor" wrote in message ... Chip: Good Post. What if you want to return a subset of the range names? I have a workbook that has about 100 names in it. I need to extract a subset, say all names beginning with "INPUT_", and use them in a loop to clear data or autofill. Is this possible? "Chip Pearson" wrote: Bret, Try: Range("A1").ListNames A1 is where the list of names is to begin. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting www.cpearson.com (email on the web site) "Bret" wrote in message ... Is there a way to programmatically capture all the 'defined names' in a worksheet and list them in a worksheet? thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Questions on Define Names | Excel Discussion (Misc queries) | |||
Invalid define names | Charts and Charting in Excel | |||
Define Names in Excel | Excel Discussion (Misc queries) | |||
how to define range names | New Users to Excel | |||
Define Names / RefersToRange | Excel Programming |