sweeneytime
Board Regular
- Joined
- Aug 23, 2010
- Messages
- 183
Hi guys,
I have the below code,renaming each tab as A2 & "Transactions" but on sheet 2 it is still trying to use cell A2 from the sheet 1, I need to pick up A2 from each sheet while active, any suggestions please?
Also do you know how I can start from just the second sheet please?
Thanks,
Alan
I have the below code,renaming each tab as A2 & "Transactions" but on sheet 2 it is still trying to use cell A2 from the sheet 1, I need to pick up A2 from each sheet while active, any suggestions please?
Also do you know how I can start from just the second sheet please?
Thanks,
Alan
Code:
Sub Rep()
Dim ProjName As String
For Each sht In ThisWorkbook.Worksheets
sht.Name = Range("A2") & " Transactions"
Next sht
End Sub