[mso] Macro for Dropped Cap in Word 2002?

  • From: Ray Shapp <ras45@xxxxxxxxxxxxx>
  • To: mso@xxxxxxxxxxxxx
  • Date: Mon, 28 May 2007 06:22:35 -0400

To All,

How to combine two macros into one?

In Word 2002, I created two separate macros that specify exactly the effect I 
want. When I combine the two macros into one, I get several extra blank lines 
in my document. The combined macro is included below my signature.

In use, I highlight the first letter of a paragraph then run this macro. It 
forms a dropped capital using that initial letter, then it formats the letter 
to appear in a shade of gray with a shadow effect. I'd like it to do only 
that, however, the macro also adds several blank lines above the paragraph.

Please tell me how to modify two macros to avoid the extra lines.

Thank you,

Ray Shapp

***macro follows***

Sub DropCap()
'
' DropCap Macro
' Macro recorded May 28, 2007 by Ray Shapp
'
    With Selection.Paragraphs(1).DropCap
        .Position = wdDropNormal
        .FontName = "Arial"
        .LinesToDrop = 3
        .DistanceFromText = InchesToPoints(0.08)
    End With
'
' Format DropCap Macro
' Macro recorded May 28, 2007 by Ray Shapp
'
    Selection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
    With Selection.Font
        .Name = "Arial"
        .Size = 52
        .Bold = False
        .Italic = False
        .Underline = wdUnderlineNone
        .UnderlineColor = wdColorAutomatic
        .StrikeThrough = False
        .DoubleStrikeThrough = False
        .Outline = False
        .Emboss = False
        .Shadow = True
        .Hidden = False
        .SmallCaps = False
        .AllCaps = False
        .Color = wdColorGray50
        .Engrave = False
        .Superscript = False
        .Subscript = False
        .Spacing = 0
        .Scaling = 100
        .Position = -5.5
        .Kerning = 0
        .Animation = wdAnimationNone
    End With
End Sub



*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, visit the group's homepage and use the dropdown 
menu at the top.  This will allow you to unsubscribe your email address or 
change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to share files with the group, you must join our Yahoo sister group. 
 This group will not allow for posting of emails, but will allow you to join 
and share problem files, templates, etc.:  
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE 
SHARING ONLY.

If you are using Outlook and you see a lot of unnecessary code in your email 
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************

Other related posts: