Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-28-2017, 08:03 AM
gmaxey gmaxey is offline Cmbine two underline types? Windows 7 32bit Cmbine two underline types? Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

No, but you can fudge:



Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
Dim orng As Range
  Set orng = Selection.Range
  orng.Underline = wdUnderlineWavy
  With orng.Find
    .Text = "[ .,:;\!\?" & Chr(9) + Chr(160) & "]"
    .MatchWildcards = True
    .Font.Underline = wdUnderlineWavy
    .Replacement.Font.Underline = wdUnderlineNone
    .Execute Replace:=wdReplaceAll
  End With
lbl_Exit:
  Exit Sub
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
Reply



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 04:34 PM.


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