Private Sub 日付計算_Click()
'今月
Me.今月月初 = DateSerial(Year(Date), Month(Date), 1)
Me.今月月末 = DateSerial(Year(Date), Month(Date) + 1, 0)
'先月
Me.先月月初 = DateSerial(Year(Date), Month(Date) - 1, 1)
Me.先月月末 = DateSerial(Year(Date), Month(Date), 0)
'来月
Me.来月月初 = DateSerial(Year(Date), Month(Date) + 1, 1)
Me.来月月末 = DateSerial(Year(Date), Month(Date) + 2, 0)
End Sub
【処理結果】