Code:
' If Subhead
ElseIf Selection.Text <> " " And Selection.Font.Size = 10 And
Selection.Font.Bold = True Then
' Tag Subhead
Selection.EndKey Unit:=wdLine
Selection.TypeText Text:="#####"
Selection.HomeKey Unit:=wdLine
Selection.TypeText Text:="#####"
Selection.HomeKey Unit:=wdLine
Selection.MoveDown Unit:=wdLine, Count:=1
**Selection.TypeParagraph
Selection.MoveRight Unit:=wdCharacter, Count:=1, Extend:=wdExtend
Else
Selection.MoveDown Unit:=wdParagraph, Count:=1
Selection.HomeKey Unit:=wdLine
Selection.MoveRight Unit:=wdCharacter, Count:=1, Extend:=wdExtend
End If
Wend
' Remove # and add line
Selection.TypeParagraph