S
Stratuser
If cell "a1" has a date, how could I check whether the date is the end of the
month and if not change it to the end of the month?
month and if not change it to the end of the month?
For each cel in Selection
cel.value = Eomonth(cel.value, 0)
Next cel
Rick Rothstein said:Try it this way...
For Each Cel In Selection
Cel.Value = DateSerial(Year(Cel.Value), Month(Cel.Value) + 1, 0)
Next