rjplante
Well-known Member
- Joined
- Oct 31, 2008
- Messages
- 574
- Office Version
- 365
- Platform
- Windows
I am trying to use VBA to enter the date in a dd-mmm-yyyy format with the month in all caps (05-SEP-2018). I have a merged cell C4:D4 and I have the cell custom formated as dd-mmm-yyyy (easy), but no matter what I try I cannot seam to get the month to display in all caps. I have the code below, but it does not work.
I have also tried the following:
Neither one seems to work. What can be done to make this work?
Thanks for any help or direction.
Code:
Sheets("Sheet2").Range("C4:D4").Value = Format(Date, "dd-mmm-yyyy")
UCase (Range("C4").Value)
I have also tried the following:
Code:
UCase (Format(Date, "dd-mmm-yyyy"))
Neither one seems to work. What can be done to make this work?
Thanks for any help or direction.