rhombus4
Well-known Member
- Joined
- May 26, 2010
- Messages
- 586
- Office Version
- 365
- 2016
- Platform
- Windows
If I want to copy Sheet1 to new workbook, I can use:-
Sheets("Sheet1").Copy
With ActiveSheet.UsedRange.Value = .UsedRange.Value
End With
End Sub
However If I want to use the same Macro and copy it to Sheets 1-10, how do I change it so that when I go to sheet2 and run the macro It will copy sheet2 and go to sheet3 copy sheet3 and so on.
Sheets("Sheet1").Copy
With ActiveSheet.UsedRange.Value = .UsedRange.Value
End With
End Sub
However If I want to use the same Macro and copy it to Sheets 1-10, how do I change it so that when I go to sheet2 and run the macro It will copy sheet2 and go to sheet3 copy sheet3 and so on.