Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 01-17-2021, 04:27 PM
Guessed's Avatar
Guessed Guessed is offline Make a Macro Run In 'Search and Replace?' Windows 10 Make a Macro Run In 'Search and Replace?' Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Most of this can be done by:
Find: ^13(Qty[0-9]{1,})^13
Replace With: " \1 " without the quotes but with spaces either side of the \1

You can add Format>Paragraph>Alignment=Left to the Replace With box to make sure the result aligns left.

A separate find replace can be used to bring the return($ onto the same line. For that one you can:
Find: ^13(\($)
Replace with: " \1"
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to search names/ids and replace text in another column Kalü Excel Programming 1 12-06-2018 07:14 PM
Adding terms to a search & replace macro Ulodesk Word VBA 6 03-29-2018 05:30 AM
Macro on Search and Replace davidhuy Word VBA 1 12-19-2014 04:47 AM
Make a Macro Run In 'Search and Replace?' Macro to search warning text style and replace the text color rohanrohith Word VBA 3 11-27-2014 01:08 PM
Search and Replace - Clear Search box JostClan Word 1 05-04-2010 08:46 PM

Other Forums: Access Forums

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