Hi Guys,
I found a macro in this forum that list all the dates between end date and start date but I can't seem to figure out how to make it only display only month end dates! Can any excel ninja here help me with this?
Sub FillDates()
Dim StartD As Date, EndD As Date
StartD = Worksheets("Sheet1").Range("B1").Value
EndD = Worksheets("Sheet1").Range("B2").Value
For Row = 1 To EndD - StartD
Cells(Row, 1) = StartD + Row - 1
Next Row
End Sub
Thank you in advance,
Dre
I found a macro in this forum that list all the dates between end date and start date but I can't seem to figure out how to make it only display only month end dates! Can any excel ninja here help me with this?
Sub FillDates()
Dim StartD As Date, EndD As Date
StartD = Worksheets("Sheet1").Range("B1").Value
EndD = Worksheets("Sheet1").Range("B2").Value
For Row = 1 To EndD - StartD
Cells(Row, 1) = StartD + Row - 1
Next Row
End Sub
Thank you in advance,
Dre