Formatting Word Text with VBA
When formatting Word text with VBA you can change all the properties in the Format Font dialog box. ' to change the font properties of selected text... With Selection.Font ' the Latin text font name and size... .Name = "Verdana" .Size = 12 ' Bold and Italic are the Font Style... .Bold = False .Italic = False .Underline = wdUnderlineNone .UnderlineColor = wdColorAutomatic ' The following are the font effects... .StrikeThrough = False .DoubleStrikeThrough = False .Outline = False .Emboss = False .Shadow = False .Hidden = False .SmallCaps = True .AllCaps = False .Color = wdColorAutomatic .Engrave = False .Superscript = False .Subscript = False ' Character spacing... .Spacing = -1 .Scaling = 100 .Position = -2 .Kerning = 12 ' One of the available Annimation effects. ' Can be one of the following... ' wdAnimationBlinkingBackground ' wdAnimationLasVegasLights ' wdAnimationMarchingBlackAnts ' wdAnimationMarchingRedAnts ' wdAnimationShimmer ' wdAnimationSparkleText ' wdAnimationSparkleText .Animation = wdAnimationNone The font, size, and style of Bidirectional fonts. .SizeBi = 12 .NameBi = "Tahoma" .BoldBi = False .ItalicBi = False End With
This
site is powered by Site Build It!. If you enjoy it, please check out
the Site
Build It homepage to learn more and on how to build
a success-guaranteed site with no technical skills.
Return from Formatting Word Text with VBA to VBA Code Samples
Return to our Homepage
|