Sub findDate()
Dim now As Date
Dim firstDay As Date
Dim lastDay As Date
now = Date
firstDay = DateSerial(Year(now), Month(now), 1)
lastDay = DateSerial(Year(now), Month(now) + 1, 0)
If now = firstDay Then
'process
End If
If now = lastDay Then
'process
End If
End Sub
Sub Test()
If DateSerial(Year(ActiveCell.Value), Month(ActiveCell.Value) + 1, 0) = ActiveCell.Value Then
MsgBox "Date is the last day of the month."
Else
MsgBox "Date is Not last day of the month."
End If
End Sub