charpentiert
New Member
- Joined
- May 12, 2007
- Messages
- 16
We have a workbook that saved as into new workbooks. For each workbook we have to take the existing tab name and replace the number in front with correct number. For instance below I recorded a macro to change "10002" to "100005" on all the tabs. Normally this is easy enough to do by hand but there are 44 workbooks with 6 tabs each.
The macro below doesn't work and I am not familiar enough to fix it. Please help.
Sub change()
'
' change Macro
'
'
Range("A1").Select
ActiveCell.FormulaR1C1 = "100005"
Range("F11").Select
Sheets("10002 a").Select
Sheets("10002 a").Name = "100005 a"
Range("C26").Select
Sheets("10002 b").Select
Sheets("10002 b").Name = "100005 b"
Sheets("10002 c").Select
Sheets("10002 c").Name = "100005 c"
Range("F23").Select
End Sub
The macro below doesn't work and I am not familiar enough to fix it. Please help.
Sub change()
'
' change Macro
'
'
Range("A1").Select
ActiveCell.FormulaR1C1 = "100005"
Range("F11").Select
Sheets("10002 a").Select
Sheets("10002 a").Name = "100005 a"
Range("C26").Select
Sheets("10002 b").Select
Sheets("10002 b").Name = "100005 b"
Sheets("10002 c").Select
Sheets("10002 c").Name = "100005 c"
Range("F23").Select
End Sub