Good morning. I'm using this code to populate a cell with a date from another cell:
The source date in column DB is formatted as such: 8/31/2022 7:47 AM
When it displays in column P I need it to be formatted like this: 8/31
I tried variations of this without luck:
VBA Code:
Sheets("Calendar").Range("P" & ActiveCell.Row).Value = Sheets("Calendar").Range("DB" & ActiveCell.Row).Text
The source date in column DB is formatted as such: 8/31/2022 7:47 AM
When it displays in column P I need it to be formatted like this: 8/31
I tried variations of this without luck:
VBA Code:
Sheets("Calendar").Range("P" & ActiveCell.Row).Value = Sheets("Calendar").Range("DB" & ActiveCell.Row).Text, Format("M/D")