I have filled many cells with different dates. example:
- 01.01.2020
- 01.02.2020
- 01.03.2020
- 01.04.2020
- 01.05.2020
- etc.. (for each month one entry)
After filling these cells with a vba macro, I want to change the format into the short month descriptions ("Jan", "Feb", "Mar", etc..)
So I changed the format with vba into "MMM", but the format is not effected on the cells. I have to go in the Cell with "F2" press enter, and then the cell will change his format to "Jan, Feb, etc.."
How can I make sure that the cell value is changed directly after changing the format?
rng
, in order to do what you need ist is enough to userng.NumberFormat = "MMM"
. – FaneDuru