"Didn't work" means nothing without explanation.
I fully tested. Shouldn't make any difference but you didn't post your code,
so???
mc = Range("l5")
Range("l4") = DateSerial(Year(mc), Month(mc) + 1, Day(mc))
--
Don Guillett
SalesAid Software
(E-Mail Removed)
"The BriGuy" <(E-Mail Removed)> wrote in message
news:F6B3471D-8469-410F-84E6-(E-Mail Removed)...
> This didn't work either. I think because this is being put in the middle
> of
> a larger macro that was expected to end befor I entered Sub again?
>
> "Don Guillett" wrote:
>
>> Sub addmonthtodate()' NO selections
>> mc = Range("l5")
>> Range("l4") = DateSerial(Year(mc), Month(mc) + 1, Day(mc))
>> End Sub
>>
>> --
>> Don Guillett
>> SalesAid Software
>> (E-Mail Removed)
>> "The BriGuy" <(E-Mail Removed)> wrote in message
>> news:9B0F3410-C761-4E93-8B02-(E-Mail Removed)...
>> > In a macro I would like to add 1 month to a date in another cell. L5 =
>> > 3/31/07 so when the macro runs I would like L4 to display 4/30/07.
>> > something
>> > like:
>> >
>> > Range("L4").Select
>> > ActiveCell. add 1 month to date in L5.
>> >
>> > Any ideas??
>>
>>
>>