Using the following I've been able to generate copied sheets of "Thursday, 07-02-09" from 7/3/09 through 12/27/09:
Sub Copysheets()
Dim x As Integer
For x = 3 To 365
Worksheets("Thursday, 07-02-09").Copy after:=Worksheets(Worksheets.Count)
ActiveSheet.Name = Format(DateSerial(2008, 19, x), "DDDD, MM-DD-YY")
Next x
End Sub
I'm having two issues that I would appreciate any help with:
1. I'm trying to generate copied sheets through 6/30/10, but it errors out after 12/27/09 (although, it went into March once). What am I doing wrong?
2. Each sheet has a beginning balance (C3) that is taken from the previous day's ending balance (='Wednesday, 07-01-09'!N3). But, the generated copies all refer to the original sheet instead of the previous day's. Any ideas on a simple solution?
Sub Copysheets()
Dim x As Integer
For x = 3 To 365
Worksheets("Thursday, 07-02-09").Copy after:=Worksheets(Worksheets.Count)
ActiveSheet.Name = Format(DateSerial(2008, 19, x), "DDDD, MM-DD-YY")
Next x
End Sub
I'm having two issues that I would appreciate any help with:
1. I'm trying to generate copied sheets through 6/30/10, but it errors out after 12/27/09 (although, it went into March once). What am I doing wrong?
2. Each sheet has a beginning balance (C3) that is taken from the previous day's ending balance (='Wednesday, 07-01-09'!N3). But, the generated copies all refer to the original sheet instead of the previous day's. Any ideas on a simple solution?