A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Try this:
Sub SheetCreation()
Dim dNext_Monday As Date
Dim sLastMonday As String
Sheets("template").Copy Before:=Sheets(2)
dNext_Monday = DateAdd("d", -Weekday(Now) + 9, Now)
MsgBox "If today's date is '" & Format(Now, "DD MMM YY") & "' then" & vbCrLf & _
" Next Monday Date is : " & Format(dNext_Monday, "DD MMM YY"), vbInformation, "Next Monday Date"
sLastMonday = Format(dNext_Monday - 7, "MM-DD-YY")
Sheets(2).Name = Format(dNext_Monday, "MM-DD-YY")
Sheets(2).Range("B3").FormulaR1C1 = "='" & sLastMonday & "'!RC[12]+3"
Sheets(2).Range("B7:D7").FormulaR1C1 = "='" & sLastMonday & "'!RC[12]"
End Sub
Remark: there is an inconsistency: 2-28-22 is formatted as M-DD-YY, but you name the new sheet using MM-DD-YY. The code above uses MM-DD-YY.