jim may
Well-known Member
- Joined
- Jul 4, 2004
- Messages
- 7,486
Can anyone spot my problem? R/T occuring a/on Red Line...
Thanks in Advance...
Jim
Rich (BB code):
Sub Foo1()
For i = 1 To ActiveWorkbook.Names.Count
CAddress = Mid(ActiveWorkbook.Names(i), WorksheetFunction.Find("!", ActiveWorkbook.Names(i)) + 1, 12)
FullNameData = Names(i).Name
FullNameData = WorksheetFunction.Substitute(FullNameData, "Block1", "Block2", 1)
FullNameData = WorksheetFunction.Substitute(FullNameData, "b1day", "b2day", 1)
PartNameData = Left(FullNameData, WorksheetFunction.Find("!", FullNameData) - 1)
Worksheets(2).Names.Add Name:=PartNameData & "!" & CAddress
'.......
Next
End Sub
Thanks in Advance...
Jim