jaeremata
New Member
- Joined
- Jan 20, 2021
- Messages
- 24
- Office Version
- 2019
- 2016
- Platform
- Windows
Hi Everyone, I need some help in my macro. Currently I have a code that will change the date format to yyyy-mm-dd, but what I want to also happen is to change it on Short date. Here's my attempt:
If you can see on the SS, the highlighted yellow is what is showing on the filter but what I want is on the blue circle. When I used .Value = DateValue its' not working. Is there anyway to change it like on the blue circle on?
Here's my attempt:
With Worksheets("NC")
With .Range("j3:k" & .Cells(.Rows.Count, "G").End(xlUp).Row) 'Fixed
.NumberFormat = "yyyy-mm-dd"
.Font.Size = 11
.Font.Name = "Calibri"
.Font.Color = vbBlack
.Font.Bold = False
If you can see on the SS, the highlighted yellow is what is showing on the filter but what I want is on the blue circle. When I used .Value = DateValue its' not working. Is there anyway to change it like on the blue circle on?
Here's my attempt:
With Worksheets("NC")
With .Range("j3:k" & .Cells(.Rows.Count, "G").End(xlUp).Row) 'Fixed
.NumberFormat = "yyyy-mm-dd"
.Font.Size = 11
.Font.Name = "Calibri"
.Font.Color = vbBlack
.Font.Bold = False