Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-05-2015, 02:18 PM
macropod's Avatar
macropod macropod is offline Microsoft Word macro to find text, select all text between brackets, and delete Windows 7 64bit Microsoft Word macro to find text, select all text between brackets, and delete Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,536
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You don't need a macro for this - you can use a wildcard Find/Replace, where:
Find = \[A[!1]*\]
Replace = nothing
This will delete all of the [A# text] where # is any number other than 1.

Cross-posted at: http://stackoverflow.com/questions/2...ets-and-delete#


For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 02-05-2015, 03:15 PM
helal1990 helal1990 is offline Microsoft Word macro to find text, select all text between brackets, and delete Windows 7 64bit Microsoft Word macro to find text, select all text between brackets, and delete Office 2010 64bit
Novice
Microsoft Word macro to find text, select all text between brackets, and delete
 
Join Date: Feb 2015
Posts: 3
helal1990 is on a distinguished road
Default

Thanks for the reply macropad. I want to use a macro because I want to automate a process at work, and I need to make it easy for the older guys to use. Pretty much I want the final version to only need a model number as the input.

Thanks again.
Reply With Quote
Reply

Tags
macro



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to find text in between two characters and then format selected text? qcom Word 5 02-19-2015 11:23 PM
Microsoft Word macro to find text, select all text between brackets, and delete VBA code for Microsoft Word macro — select text and insert footnote ndnd Word VBA 10 01-06-2015 01:47 PM
Macro to find coloured text and replace with form-field/formtext containing that text tarktran Word VBA 1 11-26-2014 08:12 AM
Microsoft Word macro to find text, select all text between brackets, and delete How to find and select text in a document? mkhuebner Word VBA 8 02-04-2014 08:04 PM
Microsoft Word macro to find text, select all text between brackets, and delete Need help on Macro 03- Find text - if text is blank then remove line simpleonline1234 Word VBA 1 02-25-2011 02:28 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:33 PM.


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