Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 05-28-2017, 02:37 PM
eduzs eduzs is offline Cmbine two underline types? Windows 10 Cmbine two underline types? Office 2010 32bit
Expert
Cmbine two underline types?
 
Join Date: May 2017
Posts: 266
eduzs is on a distinguished road
Default

Superb! Many thanks.

I have this code, how I can change it to instead of turning the font color blue apply a wavy + words underline based on your code?

(ps. I didn't use the find/found because the strange behaviors of this instruction)

Quote:
For oWord = 1 To Selection.Paragraphs(1).Range.Words.Count

If Len(Trim(Selection.Paragraphs(1).Range.Words(oWord ).Text)) > 4 Then

If InStr(1, PalsRep, Trim(Selection.Paragraphs(1).Range.Words(oWord).Te xt), vbTextCompare) > 1 Then

With Selection.Paragraphs(1).Range.Words(oWord).Font.Co lorIndex = wdBlue

End If

End If

Next oWord
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cmbine two underline types? Automatic Formatting/Types SteveHebburn Word 1 07-18-2015 03:55 PM
Cmbine two underline types? Task types with no Resources assigned mtaylor Project 1 05-24-2014 12:37 PM
Data types Jennifer Murphy Word VBA 0 01-05-2013 04:12 PM
Cmbine two underline types? Page numbering (two types in one doc) alexb123 Word 1 03-05-2012 04:11 PM
multiple types of alignment on one line? uoficowboy Word 1 03-06-2010 08:54 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft