Excel 2003 - VBA - Working with Dates

  • Thread starter Thread starter Craig Brandt
  • Start date Start date
C

Craig Brandt

Does anyone have and idea how to create the date of the last day of the
previous month?

Craig
 
Assuming the OP actually needs this in VBA (as his Subject seems to
indicate), the VB equivalent of your worksheet formula is this...

LastDayOfPreviousMonth = Date - Day(Date)
 
Back
Top