View Single Post
 
Old 11-24-2023, 02:03 AM
RobiNew RobiNew is offline Windows 10 Office 2016
Competent Performer
 
Join Date: Sep 2023
Posts: 200
RobiNew is on a distinguished road
Default

Thanks a lot, Gmaxey! All this is very instructive. Your code works like charm.
At present I'm trying to remove underline in a specific postion (lastChr). But the code removes underline in the whole document. Please help!

Code:
With ActiveDocument
    LastChr = .GoTo(wdGoToPage, wdGoToLast).End
    .Range(LastChr, ActiveDocument.Range.End).Font.Underline = False
    .Range(LastChr, ActiveDocument.Range.End).InsertAfter Chr(13) & "Firt Part - End"
End With
Reply With Quote