Re: Font codes for capitalization and small caps
- From: "Blue Max" <mailrichard@xxxxxxx>
- Date: Tue, 10 Feb 2009 17:21:58 -0700
Thank you Gord, I appreciate you sharing a temporary work-around. Meanwhile, we hope Microsoft will add this functionality in the future.
Thanks,
Richard
*****************
"Gord Dibben" <gorddibbATshawDOTca> wrote in message news:afj1p4d8ohfm9ebfgs35gr43k8g8nsc8j5@xxxxxxxxxx
To Blue Max
Untill MS gets around to complying with your suggestion you could use this
macro for small caps.
Sub Small_Caps()
Dim o As Object
Dim sCap As Integer, _
lCap As Integer, _
I As Integer
Dim testStr As String
Application.ScreenUpdating = False
For Each o In Selection
With o
If Application.IsText(.Value) Then
lCap = .Characters(1, 1).Font.Size
sCap = Int(lCap * 0.85)
'Small caps for everything.
.Font.Size = sCap
.Value = UCase(.Value)
testStr = .Value
'Large caps for 1st letter of words.
testStr = Application.Proper(testStr)
For I = 1 To Len(testStr)
If Mid(testStr, I, 1) = UCase(Mid(testStr, I, 1)) Then
.Characters(I, 1).Font.Size = lCap
End If
Next I
End If
End With
Next o
Application.ScreenUpdating = True
End Sub
Gord Dibben MS Excel MVP
On Tue, 10 Feb 2009 09:28:56 +1100, "AltaEgo" <Somewhere@NotHere> wrote:
"Blue Max" <mailrichard@xxxxxxx> wrote in message
news:2C3B57B3-FD2E-4988-A8F3-931B96640A01@xxxxxxxxxxxxxxxx
Why not add options to the font menu for formatting cell fonts to
lowercase, UPPERCASE, or Proper Caps? Currently, the user must use
formula functions to perform this formatting. The current method has many
drawbacks and limitations. Including the font options suggested above
would eliminate current limitations and would allow the user to designate
the cell format regardless of whether the cell contained a formula or
whether the text was manually input into the cell.
Additionally, we have used programs that include font options for SMALL
CAPS. This allows the user to select a font and then designate that ALL
letters be displayed as uppercase, however the first letter of each word
is a larger uppercase letter (i.e., a capitalized capital). It is a very
nice effect. SHADOW and OUTLINE are two other font options provided by
other spreadsheet programs that would be nice to include in Excel.
.
- References:
- Font codes for capitalization and small caps
- From: Blue Max
- Re: Font codes for capitalization and small caps
- From: AltaEgo
- Re: Font codes for capitalization and small caps
- From: Gord Dibben
- Font codes for capitalization and small caps
- Prev by Date: Re: Ranking and Allocating points
- Next by Date: Re: sheet names and representing a date
- Previous by thread: Re: Font codes for capitalization and small caps
- Next by thread: Re: Font codes for capitalization and small caps
- Index(es):
Relevant Pages
|