Home |
Search |
Today's Posts |
#12
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Wed, 26 Sep 2007 14:54:42 -0400, Ron Rosenfeld
wrote: On Mon, 24 Sep 2007 13:58:00 -0700, pswanie wrote: i need a mocro to check if its the last day of the month and if so del contents in cell a1 for example chek if day = 31 then del range a1. if only 30 days in month then chek if day = 30 then del range a1. if only 28 days in month then chek if day = 28 then del range a1. if non of above then nothing it can use the system date to chek what month is the current month Sub ClearAtEOM() If Day(Date + 1) < Day(Date) Then [a1].ClearContents End Sub --ron I see JW has posted an even simpler method: If Day(Date + 1) = 1 Then [a1].ClearContents --ron |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel to make the days cary over month to month automaticly | New Users to Excel | |||
Check Input for Valid Month | Excel Programming | |||
Last Saturday of each month(check on Monday) | Excel Programming | |||
Check month | Excel Programming | |||
transfer cell $ amount to other sheet month-to-month without overc | Excel Discussion (Misc queries) |