Hi,
Maybe I hid the code:
I used the variable list to indicate the beginning of the tableCode:Dim list As Long: list = 21
To insert the missing days with the code
The code works correctlyCode:If Day(ed) > 1 Then c.Offset(1).Resize(Day(ed - 1)).EntireRow.Insert Cells(list, r.Column) = DateSerial(Year(ed), Month(ed), 1) Cells(list, r.Column).AutoFill Cells(list, r.Column).Resize(Day(ed)) End If
Thank you so much




Reply With Quote
Bookmarks