I have 2 message box in which the start year and the number of years should be entered by the user . Depending on the number entered (number of years) new worksheets should be created ... Let us say number of years=5, then 5 new worksheets which replicates the existing worksheet should be created.
Depending on the start year entered, this worksheets needs to be renamed as Year 2007-year 2011(if n=5).. How do I do this ...
I can't use
Worksheets("Year 2007").Copy after:=Worksheets(.Count)
It gives me an error- Subscript out of range...
I do not know how to link the start year, number of years with add sheet and rename sheet... Any help will be appreciated..
Bookmarks