Excel 2003 - VBA - Working with Dates

C

Craig Brandt

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

Craig
 
R

Rick Rothstein

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)
 
Top