Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I use the following code to change the names of all the rangenames in
a particular workbook: Sub chng() Dim nm As Name For Each nm In ActiveWorkbook.Names If Left(nm.Name, 3) = "FFG" Then nm.Name = "DDG" & Right(nm.Name, Len(nm.Name) - 3) End If Next nm End Sub Now, because I copied a sheet with a whole lot of rangenames, I have a sheet with local rangenames that are the same as the global rangenames on the original sheet. I need to modify the code, so it only changes rangenames that are local to a particular sheet. Is there a property of Names that I can use to limit the name changing to rangenames local to a particular worksheet? Thanks Ken |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sheet tab names change automatically | Excel Discussion (Misc queries) | |||
Change sheet names for charts on the fly | Excel Discussion (Misc queries) | |||
How to change sheet names via formula | Excel Discussion (Misc queries) | |||
Named sheet to change Cells names | New Users to Excel | |||
How to change XL sheet names from cell range | Excel Programming |