View Single Post
  #9   Report Post  
Posted to microsoft.public.excel.programming
Stratuser Stratuser is offline
external usenet poster
 
Posts: 63
Default Convert Date to End of Month

That worked. Thanks very much.

"Rick Rothstein" wrote:

It should be as simple as this:

For each cel in Selection
cel.value = Eomonth(cel.value, 0)
Next cel


Try it this way...

For Each Cel In Selection
Cel.Value = DateSerial(Year(Cel.Value), Month(Cel.Value) + 1, 0)
Next

--
Rick (MVP - Excel)