cinemarter
cinemarter

Reputation: 61

VBA can't set date format on column

i'm trying to change column format from "Custom" to "Date" by

Columns("F:F").Select
Selection.NumberFormat = "Date"

but it set's F column's format just to another Custom, and for example

05 / 16

becomes to

1at2016

Can you please help me?

Upvotes: 0

Views: 5894

Answers (1)

Romeo
Romeo

Reputation: 1093

Selection.NumberFormat = "mm/dd"

that should do the trick.

Upvotes: 3

Related Questions