One way
Sub lastday()
If Day(Date) = Day(DateSerial(Year(Date), _
Month(Date), 1) - 1) Then Range("a1").ClearContents
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"pswanie" <(E-Mail Removed)> wrote in message
news:42F42AEE-0036-4A05-AB49-(E-Mail Removed)...
>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
>