#1   Report Post  
Posted to microsoft.public.excel.misc
XP XP is offline
external usenet poster
 
Posts: 389
Default Small caps?

Using Office 2003 and Windows XP;

Is there a way to get Arial font to appear in small caps in XL? If so, how?

Thanks much in advance...
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Small caps?

If you don't have Arial small caps installed you could probably get it from the
'net.

Otherwise this macro will smallcap whatever text is in the selected cells.

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 Thu, 19 Jun 2008 06:25:00 -0700, XP wrote:

Using Office 2003 and Windows XP;

Is there a way to get Arial font to appear in small caps in XL? If so, how?

Thanks much in advance...


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Small caps macro

The macro you displayed works! Thank you for making it available. I am wondering, though, if it is possible to modify the macro so that the first letter of each word is NOT a "capital small caps" letter. That is, can each letter be made exactly the same size?

Thank you,

Chuck



Gord Dibben wrote:

If you don't have Arial small caps installed you could probably get it from
19-Jun-08

If you don't have Arial small caps installed you could probably get it from the
'net.

Otherwise this macro will smallcap whatever text is in the selected cells.

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 Thu, 19 Jun 2008 06:25:00 -0700, XP wrote:

Previous Posts In This Thread:

On Thursday, June 19, 2008 9:25 AM
X wrote:

Small caps?
Using Office 2003 and Windows XP;

Is there a way to get Arial font to appear in small caps in XL? If so, how?

Thanks much in advance...

On Thursday, June 19, 2008 1:44 PM
Gord Dibben wrote:

If you don't have Arial small caps installed you could probably get it from
If you don't have Arial small caps installed you could probably get it from the
'net.

Otherwise this macro will smallcap whatever text is in the selected cells.

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 Thu, 19 Jun 2008 06:25:00 -0700, XP wrote:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Role-Based .NET Security without COM+
http://www.eggheadcafe.com/tutorials...-security.aspx
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Small caps macro

Wouldn't that mean that you just used all caps in the cell and reduced the font
size?

You wouldn't need this macro at all.



Chuck, Smith wrote:

The macro you displayed works! Thank you for making it available. I am wondering, though, if it is possible to modify the macro so that the first letter of each word is NOT a "capital small caps" letter. That is, can each letter be made exactly the same size?

Thank you,

Chuck

Gord Dibben wrote:

If you don't have Arial small caps installed you could probably get it from
19-Jun-08

If you don't have Arial small caps installed you could probably get it from the
'net.

Otherwise this macro will smallcap whatever text is in the selected cells.

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 Thu, 19 Jun 2008 06:25:00 -0700, XP wrote:

Previous Posts In This Thread:

On Thursday, June 19, 2008 9:25 AM
X wrote:

Small caps?
Using Office 2003 and Windows XP;

Is there a way to get Arial font to appear in small caps in XL? If so, how?

Thanks much in advance...

On Thursday, June 19, 2008 1:44 PM
Gord Dibben wrote:

If you don't have Arial small caps installed you could probably get it from
If you don't have Arial small caps installed you could probably get it from the
'net.

Otherwise this macro will smallcap whatever text is in the selected cells.

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 Thu, 19 Jun 2008 06:25:00 -0700, XP wrote:

Submitted via EggHeadCafe - Software Developer Portal of Choice
Role-Based .NET Security without COM+
http://www.eggheadcafe.com/tutorials...-security.aspx


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Small caps macro

Remove these lines...................

' 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


Gord

On Thu, 04 Feb 2010 07:48:18 -0800, Chuck Smith wrote:

The macro you displayed works! Thank you for making it available. I am wondering, though, if it is possible to modify the macro so that the first letter of each word is NOT a "capital small caps" letter. That is, can each letter be made exactly the same size?

Thank you,

Chuck



Gord Dibben wrote:

If you don't have Arial small caps installed you could probably get it from
19-Jun-08

If you don't have Arial small caps installed you could probably get it from the
'net.

Otherwise this macro will smallcap whatever text is in the selected cells.

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 Thu, 19 Jun 2008 06:25:00 -0700, XP wrote:

Previous Posts In This Thread:

On Thursday, June 19, 2008 9:25 AM
X wrote:

Small caps?
Using Office 2003 and Windows XP;

Is there a way to get Arial font to appear in small caps in XL? If so, how?

Thanks much in advance...

On Thursday, June 19, 2008 1:44 PM
Gord Dibben wrote:

If you don't have Arial small caps installed you could probably get it from
If you don't have Arial small caps installed you could probably get it from the
'net.

Otherwise this macro will smallcap whatever text is in the selected cells.

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 Thu, 19 Jun 2008 06:25:00 -0700, XP wrote:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Role-Based .NET Security without COM+
http://www.eggheadcafe.com/tutorials...-security.aspx




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I use the "Small Caps" Font option in an Excel speadsheet execassist1976 Excel Discussion (Misc queries) 2 October 4th 06 10:40 PM
Small Caps in Excel Carlo Excel Discussion (Misc queries) 2 September 1st 06 06:45 AM
formula for changing CAPS to small letters Stilla Excel Worksheet Functions 2 June 26th 06 07:07 PM
small caps BorisS Excel Discussion (Misc queries) 2 December 12th 05 09:51 AM
How can I convert all Caps to first letter caps in Excel? Fenljp26 Excel Worksheet Functions 5 June 30th 05 11:35 AM


All times are GMT +1. The time now is 04:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"