Change end of month to 24th

R

Rhonda

How can this be modified to check to see if it's the 24th
of the month, not the end.

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."
ActiveWorkbook.RefreshAll

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

Harald Staff

Hi

If Date >= DateSerial(Year(Date), Month(Date), 24) Then
or
If Date = DateSerial(Year(Date), Month(Date), 24) Then
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top