Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
conditional on change of Month | Excel Discussion (Misc queries) | |||
Excel 2003 month to month data change grid | Excel Discussion (Misc queries) | |||
Change Day to Month - VBA | Excel Worksheet Functions | |||
6 month annualized % change | Excel Discussion (Misc queries) | |||
month to month % change | Excel Worksheet Functions |