end of month to 24th

  • Thread starter Thread starter Rhonda
  • Start date Start date
R

Rhonda

Can someone please change this code to update the 24th of
each instead of thend?


Thanks!!!




Sub RefreshMeters()



If Date = DateSerial(Year(Date), Month(Date) + 1, 0)
Then
MsgBox "This is the last day of the Month. Your
data will be updated."

' RefreshMeters Macro
' Macro recorded 30/09/2003 by rhocarit
'
' Keyboard Shortcut: Ctrl+a
'
ActiveWorkbook.RefreshAll

Else
MsgBox "This is NOT the last day of the Month.
Your data has NOT been updated."
End If

End Sub
 
Steve

that's the 24th of next month. The previous formula calculates the last day
of the current month.

Regards

Trevor
 
Back
Top