L
LEU
Graham Mayor was helping me with paragraph formatting and gave me the
following macro to try. How do I get it to skip the paragraph formatting
inside tables?
Dim sStyle As Integer
sStyle = 0
With ActiveDocument
For i = 1 To .Paragraphs.Count
With .Paragraphs(i)
If Left(.Style, 7) = "Heading" Then
sStyle = Right(.Style, 1)
End If
If .Style = "Normal" And sStyle <> 0 Then
.Style = "HD" & sStyle
End If
End With
Next i
End With
following macro to try. How do I get it to skip the paragraph formatting
inside tables?
Dim sStyle As Integer
sStyle = 0
With ActiveDocument
For i = 1 To .Paragraphs.Count
With .Paragraphs(i)
If Left(.Style, 7) = "Heading" Then
sStyle = Right(.Style, 1)
End If
If .Style = "Normal" And sStyle <> 0 Then
.Style = "HD" & sStyle
End If
End With
Next i
End With