Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-19-2017, 05:03 AM
eduzs eduzs is offline VBA to find any nine-figure number Windows 10 VBA to find any nine-figure number Office 2010 32bit
Expert
 
Join Date: May 2017
Posts: 266
eduzs is on a distinguished road
Default

Try this:

With Selection.Find

.Text = "£*[0-9]{9}"
.Replacement.Text = Chr(13)
.MatchWildcards = True
.Execute Replace:=wdReplaceAll, Forward:=True, Wrap:=wdFindContinue

End With
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Captioning each figure with the chapter number jatin1990 Word 6 03-31-2015 02:34 PM
How to stop caption number reset (Figure 1) strathglass Word 5 06-17-2013 06:06 AM
VBA to find any nine-figure number Figure number for repeated use in paragraph rahul4msoffice Word 1 05-01-2013 11:35 PM
Refering figure number too text danzi Word 1 01-20-2012 12:13 PM

Other Forums: Access Forums

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