Hi,
I have an excel workbook with several worksheets. I have a coded command button that copies worksheet2, no problem. However, how do I change my code to have the worksheets copy in order after Worksheet2: worksheet3, worsheet4, worksheet 5....
Below is the code I am using which adds the copy at the end of the workbook:
Private Sub Copy_Worksheet_Click()
Dim result As String
ActiveWorkbook.Worksheets(2).Copy After:=Worksheets(Worksheets.Count)
End Sub
Any help is much appreciate!!!
I have an excel workbook with several worksheets. I have a coded command button that copies worksheet2, no problem. However, how do I change my code to have the worksheets copy in order after Worksheet2: worksheet3, worsheet4, worksheet 5....
Below is the code I am using which adds the copy at the end of the workbook:
Private Sub Copy_Worksheet_Click()
Dim result As String
ActiveWorkbook.Worksheets(2).Copy After:=Worksheets(Worksheets.Count)
End Sub
Any help is much appreciate!!!