Number Format - Capitalize

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to get a number format to show capital letters?

For example, I want to display 3/14/2006 as "MAR". I can get it to display
as Mar, but my boss wants it to appear as capital letters.
 
right click sheet tab>view code>insert this>

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 2 Then Exit Sub
Target = UCase(Format(Target, "MMM"))

End Sub
 
Is there anything I need to do?

Don Guillett said:
right click sheet tab>view code>insert this>

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column <> 2 Then Exit Sub
Target = UCase(Format(Target, "MMM"))

End Sub
 
You could use a font which only displays capital letters.....

or with a formula in another cell

=UPPER(TEXT(A1,"mmm"))
 
Do as I said and any date such as 3/15 entered into any cell in column B
will say MAR
 
I quite like this.
Please can you tell me what to change to only have this in one cell. (say A2)

Thanking you in anticipation.
Your help is and always has been very much appreciated.
 
Thank you for replying and for quick responce.
This did work but had to change the = to <>.
I must be getting better. I wouldn't of been able to work that one out a
couple of months ago.

Thank you again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top