A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
'
open a new workbook
and paste in the below vba macro
'
Sub DoDays22()
'## 02 JUNE 2022 ##
'### NOTE!!! >> dates as [DAY/MONTH/YEAR] or [MONTH/DAY/YEAR] , dates depend on regional settings ###
Const sDay1 As String = "10/1/2022" '01 Oct 2022, start date
Const sDay2 As String = "9/30/2023" '30 Sep 2023, last date
'
Dim sh As Worksheet
Dim n1 As Long
Dim n2 As Long
Dim x As Long
'
n1 = CDate(sDay1)
n2 = CDate(sDay2)
'
If n1 >= n2 Then
MsgBox "wrong dates"
Exit Sub
End If
'
Application.ScreenUpdating = False
Application.DisplayAlerts = False
'
If Worksheets.Count > 1 Then
For x = Worksheets.Count To 2 Step -1
Sheets(x).Delete
Next x
Sheets(1).Name = "tmp"
End If
'
For x = n1 To n2
Set sh = Sheets.Add(after:=Sheets(Sheets.Count))
sh.Name = Format(x, "Mmm dd, yyyy (Ddd)")
Next x
Sheets(2).Select
Sheets(1).Delete
'
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End Sub