I am trying to copy a new sheet based on the active sheet and rename it using an input box. I then want to copy a sheet named "January" and copy and paste that data into the worksheet I just created, but it needs to be a variable named worksheet as I add a new sheet each month.
In the code below, "March" in this case will be named to April for the following month.
I hope this explanation makes sense. I can provide the workbook if needed.
Can someone please help. Here is what I have so far.
Thanks in advance,
Ken Mc
Sub InsertDuplicateSheet() ActiveSheet.Copy After:=ActiveSheet ActiveSheet.Name = InputBox("Please insert the name of the new sheet.", "Rename Sheet") Sheets("January").Select Range("A1").Select Range(Selection, Selection.End(xlToRight)).Select Range(Selection, Selection.End(xlDown)).Select Selection.Copy Sheets("March").Select Range("A1").Select ActiveSheet.Paste Range("B4").Select End Sub