Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-16-2012, 10:57 PM
tinfanide tinfanide is offline NumberFormat: Capitalised Weekday Letters??? Windows 7 64bit NumberFormat: Capitalised Weekday Letters??? Office 2010 32bit
Expert
NumberFormat: Capitalised Weekday Letters???
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default NumberFormat: Capitalised Weekday Letters???



Code:
Cell.NumberFormat = "yyyy/mm/dd DDD"
I cannot find ways to capitalise the weekday letters both in VBA and Cell Format Menu (Ctrl+1).

Code:
ddd
or
Code:
DDD
just returns weekdays in small letters.
Reply With Quote
  #2  
Old 04-17-2012, 01:19 AM
Colin Legg's Avatar
Colin Legg Colin Legg is offline NumberFormat: Capitalised Weekday Letters??? Windows 7 32bit NumberFormat: Capitalised Weekday Letters??? Office 2010 32bit
Expert
 
Join Date: Jan 2011
Location: UK
Posts: 369
Colin Legg will become famous soon enough
Default

Hi,

As far as I know you can't do this with number formats alone. You could convert the value to uppercase using the UPPER() function in a formula though.
__________________
Colin

RAD Excel Blog
Reply With Quote
  #3  
Old 04-17-2012, 02:15 AM
tinfanide tinfanide is offline NumberFormat: Capitalised Weekday Letters??? Windows 7 64bit NumberFormat: Capitalised Weekday Letters??? Office 2010 32bit
Expert
NumberFormat: Capitalised Weekday Letters???
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default

Quote:
Originally Posted by Colin Legg View Post
Hi,

As far as I know you can't do this with number formats alone. You could convert the value to uppercase using the UPPER() function in a formula though.

Yes, it does when there is no number format. But my data is formatted, the VBA codes in the attached file do not work at all. Please kindly take a look at the file below.
test.xlsm
Many thanks!
Reply With Quote
  #4  
Old 04-17-2012, 04:46 AM
tinfanide tinfanide is offline NumberFormat: Capitalised Weekday Letters??? Windows 7 64bit NumberFormat: Capitalised Weekday Letters??? Office 2010 32bit
Expert
NumberFormat: Capitalised Weekday Letters???
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default

These make it at one go.

VBA:
Code:
ActiveCell.Value = UCase(WorksheetFunction.Text(Date, "yyyy/mm/dd ddd"))
Formula:
Code:
=UPPER(TEXT(TODAY(),"yyyy/mm/dd ddd"))
Reply With Quote
Reply

Tags
numberformat, vba, weekdays



Similar Threads
Thread Thread Starter Forum Replies Last Post
letters are dashes pmd Word 5 03-05-2012 08:08 PM
My letters disappear come rain or shine Word 2 10-11-2011 02:18 PM
Problem with merged letters maaario Word 0 06-24-2011 06:22 PM
My weekday function aint working FraserKitchell Excel 12 05-25-2010 04:42 PM
NumberFormat: Capitalised Weekday Letters??? sending personal letters misteroffice Word 3 12-23-2008 08:51 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:56 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft