Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
at the beginning of your code, and
Sub Macro_Alpha_Tle()
'
' Macro_Alpha_Tle Macro
' Macro recorded 10/18/2005 by CIS Department
'
ActiveDocument.Styles.Add Name:="Alpha_title", Type:=wdStyleTypeParagraph
ActiveDocument.Styles("Alpha_title").AutomaticallyUpdate = False
With ActiveDocument.Styles("Alpha_title").Font
.Name = "Arial"
.Size = 10
.Bold = True
.Italic = False
.Underline = wdUnderlineNone
.UnderlineColor = wdColorAutomatic
.StrikeThrough = False
.DoubleStrikeThrough = False
.Outline = False
.Emboss = False
.Shadow = False
.Hidden = False
.SmallCaps = False
.AllCaps = False
.Color = wdColorAutomatic
.Engrave = False
.Superscript = False
.Subscript = False
.Scaling = 100
.Kerning = 0
.Animation = wdAnimationNone
End With
With ActiveDocument.Styles("Alpha_title").ParagraphFormat
.LeftIndent = InchesToPoints(0)
.RightIndent = InchesToPoints(0)
.SpaceBefore = 0
.SpaceBeforeAuto = False
.SpaceAfter = 0
.SpaceAfterAuto = False
.LineSpacingRule = wdLineSpaceMultiple
.LineSpacing = LinesToPoints(0.98)
.Alignment = wdAlignParagraphCenter
.WidowControl = False
.KeepWithNext = False
.KeepTogether = False
.PageBreakBefore = False
.NoLineNumber = False
.Hyphenation = True
.FirstLineIndent = InchesToPoints(0)
.OutlineLevel = wdOutlineLevelBodyText
.CharacterUnitLeftIndent = 0
.CharacterUnitRightIndent = 0
.CharacterUnitFirstLineIndent = 0
.LineUnitBefore = 0
.LineUnitAfter = 0
End With
ActiveDocument.Styles("Alpha_title").NoSpaceBetweenParagraphsOfSameStyle = _
False
ActiveDocument.Styles("Alpha_title").ParagraphFormat.TabStops.ClearAll
ActiveDocument.Styles("Alpha_title").ParagraphFormat.TabStops.Add Position _
:=InchesToPoints(5.8), Alignment:=wdAlignTabLeft, Leader:=wdTabLeaderDots
With ActiveDocument.Styles("Alpha_title").ParagraphFormat
With .Shading
.Texture = wdTextureNone
.ForegroundPatternColor = wdColorAutomatic
.BackgroundPatternColor = wdColorAutomatic
End With
.Borders(wdBorderLeft).LineStyle = wdLineStyleNone
.Borders(wdBorderRight).LineStyle = wdLineStyleNone
.Borders(wdBorderTop).LineStyle = wdLineStyleNone
.Borders(wdBorderBottom).LineStyle = wdLineStyleNone
With .Borders
.DistanceFromTop = 1
.DistanceFromLeft = 4
.DistanceFromBottom = 1
.DistanceFromRight = 4
.Shadow = False
End With
End With
ActiveDocument.Styles("Alpha_title").LanguageID = wdEnglishUS
ActiveDocument.Styles("Alpha_title").NoProofing = False
ActiveDocument.Styles("Alpha_title").Frame.Delete
End Sub
Dim oPara As Word.Paragraph
For Each oPara In ActiveDocument.Range.Paragraphs()
If oPara.Range.Font.Name = "Arial" And oPara.Range.Font.Bold = False And oPara.Range.Font.Italic = False And oPara.Range.Font.Underline = wdUnderlineNone And oPara.Range.Font.UnderlineColor = wdColorAutomatic And oPara.Range.Font.StrikeThrough = False And oPara.Range.Font.DoubleStrikeThrough = False And oPara.Range.Font.Outline = False And oPara.Range.Font.Emboss = False And oPara.Range.Font.Shadow = False And oPara.Range.Font.Hidden = False And oPara.Range.Font.SmallCaps = False And oPara.Range.Font.AllCaps = False And oPara.Range.Borders.DistanceFromTop = 1 And oPara.Range.Borders.DistanceFromBottom = 1 And oPara.Range.Borders.DistanceFromLeft = 4 And oPara.Range.Borders.DistanceFromRight = 4 And oPara.Range.Borders.DistanceFromLeft = 4 And oPara.Range.Borders.Shadow = False And oPara.Range.Shading.BackgroundPatternColor = wdColorAutomatic And oPara.Range.Shading.ForegroundPatternColor = wdColorAutomatic
oPara.Range.ParagraphFormat.LeftIndent = InchesToPoints(0.5) And oPara.Range.ParagraphFormat.RightIndent = InchesToPoints(0.5) And oPara.Range.ParagraphFormat.SpaceBefore = 0 And oPara.Range.ParagraphFormat.SpaceBeforeAuto = False And oPara.Range.ParagraphFormat.SpaceAfter = 0 And oPara.Range.ParagraphFormat.SpaceAfterAuto = False
Then oPara.Range.Style = "Alpha_style"
End If
Next