ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   I want to format date cells for the 15th of every month.. (https://www.excelbanter.com/excel-programming/368150-i-want-format-date-cells-15th-every-month.html)

Maggie

I want to format date cells for the 15th of every month..
 
I am making a spread sheet by month receiving payments on the 15th. How do I
format the cell to account for a 31 day month vs. a 30 day month.

Thanks.

Bob Phillips

I want to format date cells for the 15th of every month..
 
How about

For i = 1 To 12
Cells(i,"A").Value = dateSerial(Year(Date),i,15)
Next i

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Maggie" wrote in message
...
I am making a spread sheet by month receiving payments on the 15th. How

do I
format the cell to account for a 31 day month vs. a 30 day month.

Thanks.





All times are GMT +1. The time now is 07:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com