Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Change end of month to 24th

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Change end of month to 24th

Hi

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

--
HTH. Best wishes Harald
Followup to newsgroup only please

"Rhonda" skrev i melding
...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default Change end of month to 24th

Or

IF Day(Date) = 24 THEN

or

IF Format(Date,"dd") = "24" THEN


I think.

Chrissy.


"Harald Staff" wrote in message ...
Hi

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

--
HTH. Best wishes Harald
Followup to newsgroup only please

"Rhonda" skrev i melding
...
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





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
conditional on change of Month stew Excel Discussion (Misc queries) 0 October 31st 08 02:51 PM
Excel 2003 month to month data change grid Chad[_2_] Excel Discussion (Misc queries) 2 February 15th 08 01:36 AM
Change Day to Month - VBA Danny Excel Worksheet Functions 4 September 11th 07 01:38 AM
6 month annualized % change [email protected] Excel Discussion (Misc queries) 1 February 28th 07 04:03 PM
month to month % change Susan Excel Worksheet Functions 2 May 20th 05 08:18 PM


All times are GMT +1. The time now is 11:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"