andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
Hello all,
I used a macro recorder to capture what I wanted, but when I run my code, the formatting doesn't seem to change. I'm using an If statment, and the value in the cell changes, so I know the code is working, but the formatting isnt.
this one is a time
this one is a date
any help would be appreciated.
I used a macro recorder to capture what I wanted, but when I run my code, the formatting doesn't seem to change. I'm using an If statment, and the value in the cell changes, so I know the code is working, but the formatting isnt.
Code:
Range("L23").Select
Selection.NumberFormat = "[$-en-US]h:mm AM/PM;@"
Code:
Range("L23").Select
Selection.NumberFormat = "m/d;@"
any help would be appreciated.