View Single Post
 
Old 10-14-2016, 03:48 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,143
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Highlight colours the background. That's all that it does. There is no facility in Word to add coloured wiggly underlines as highlights.

I suppose you could add a coloured wiggly underline font characteristic e.g.
Code:
Sub Count_of_words()
Dim s As Range
    For Each s In Selection.Sentences
        If s.Words.Count > 20 Then
            With s.Font
                .Underline = wdUnderlineWavy
                .UnderlineColor = wdColorDarkYellow
            End With
        End If
    Next
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote