Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-21-2019, 07:14 AM
gmaxey gmaxey is offline How to repeat a search followed by editing text? Windows 10 How to repeat a search followed by editing text? 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

Code:
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey
  Dim oRng As Range
  Set oRng = ActiveDocument.Range
  With oRng.Find
    .Text = "([a-z])(/)([a-z])"
    .MatchWildcards = True
    .Replacement.Text = "\1 \2 \3"
    .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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
possible to repeat text with numbered list? Burt Word 5 07-14-2019 04:02 PM
outlook search tool locked with key word, it will not allow deleting or editing roni Outlook 0 07-12-2017 07:31 AM
How to repeat a search followed by editing text? Repeat text dgame27 Word 1 07-06-2016 09:14 PM
Automatically Repeat Text in Footer Luxanais Word 2 09-24-2015 10:10 AM
How to repeat a search followed by editing text? Text will repeat in the fields ypurcaro Word 1 02-07-2013 01:46 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:06 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