D
dhstein
I want to bold the first 3 words in the line then cut them and move to the
end. But I want the end of the line (meaning the next hard CR not the end of
the line where it wraps to the next line) Here's my code and any help is
appreciated:
Sub OneLine()
'
' OneLine Macro
'
'
Selection.MoveRight Unit:=wdWord, Count:=3, Extend:=wdExtend
Selection.Font.Bold = wdToggle
Selection.Cut
Selection.EndKey Unit:=wdLine
Selection.TypeText Text:=" - "
Selection.PasteAndFormat (wdPasteDefault)
Selection.MoveDown Unit:=wdParagraph, Count:=2
End Sub
end. But I want the end of the line (meaning the next hard CR not the end of
the line where it wraps to the next line) Here's my code and any help is
appreciated:
Sub OneLine()
'
' OneLine Macro
'
'
Selection.MoveRight Unit:=wdWord, Count:=3, Extend:=wdExtend
Selection.Font.Bold = wdToggle
Selection.Cut
Selection.EndKey Unit:=wdLine
Selection.TypeText Text:=" - "
Selection.PasteAndFormat (wdPasteDefault)
Selection.MoveDown Unit:=wdParagraph, Count:=2
End Sub