Hi
I need fixing this code
the code add new sheet with copy specific data and the same formatting and incrementing numbers based on sheet number
location of sheet in in third sheet , for instance name the sheet third is TEST1 and based on the code will be TEST4 but what I want TEST2,TEST3,TEST4 consecutively
I need change this line
but I no know how
is there any way experts?
I need fixing this code
VBA Code:
Sub new_report()
Dim a
Sheets(Sheets.Count).Copy After:=Sheets(Sheets.Count)
With ActiveSheet.Cells(1).CurrentRegion.Offset(1)
ActiveSheet.Name = "TEST1" & Sheets.Count - 1
a = .Value
.ClearContents
Cells(2, 1).Resize(UBound(a), 3) = Application.Index(a, Evaluate("row(1:" & UBound(a) & ")"), Array(1, 2, 6))
End With
End Sub
the code add new sheet with copy specific data and the same formatting and incrementing numbers based on sheet number
location of sheet in in third sheet , for instance name the sheet third is TEST1 and based on the code will be TEST4 but what I want TEST2,TEST3,TEST4 consecutively
I need change this line
VBA Code:
ActiveSheet.Name = "TEST1" & Sheets.Count - 1
is there any way experts?