The below code will allow me to type the number of times to copy a sheet.
what I like to add is for it to color each tab to a different color and also change value of a cell in each sheet to = I any suggestion is greatly appreciated.
Code:
Dim I As Long Dim xNumber As Integer
Dim xName As String
Dim xActiveSheet As Worksheet
On Error Resume Next
Application.ScreenUpdating = False
Set xActiveSheet = ActiveSheet
xNumber = InputBox("Enter number of times to copy the current sheet")
For I = 1 To xNumber
xName = ActiveSheet.Name
xActiveSheet.Copy After:=ActiveWorkbook.Sheets(xName)
ActiveSheet.Name = I
Next
xActiveSheet.Activate
Application.ScreenUpdating = True
what I like to add is for it to color each tab to a different color and also change value of a cell in each sheet to = I any suggestion is greatly appreciated.
Last edited: