A family of Microsoft word processing software products for creating web, email, and print documents.
Hi,
I think the following accomplishes what you're after:
Dim oTbl As Table
Set oTbl = ActiveDocument.Tables.Add(Range:=Selection.Range, NumRows:=2, NumColumns:= _
1, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _
wdAutoFitFixed)
With oTbl
If .Style <> "Table Grid" Then
.Style = "Table Grid"
End If
.ApplyStyleHeadingRows = True
.ApplyStyleLastRow = False
.ApplyStyleFirstColumn = True
.ApplyStyleLastColumn = False
.ApplyStyleRowBands = True
.ApplyStyleColumnBands = False
With .Range
'''sets the before/after spacing for the entire table
.ParagraphFormat.SpaceBefore = InchesToPoints(0)
.ParagraphFormat.SpaceAfter = InchesToPoints(0)
With .Font
.Name = "Times New Roman Bold"
.Size = 12
.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
.Spacing = 0
.Scaling = 100
.Position = 0
.Kerning = 0
.Animation = wdAnimationNone
End With
End With
With .Range.Cells(1)
.Shading.ForegroundPatternColor = wdColorAutomatic
.Shading.BackgroundPatternColor = -587137025
.Range.Font.Color = -603914241
.Range.text = "Slide"
End With
End With
HTH,
Dave