Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 01-27-2018, 04:07 AM
jodecaesteker jodecaesteker is offline Macro to delete text in specific styles Windows 10 Macro to delete text in specific styles Office 2016
Novice
 
Join Date: Jan 2018
Posts: 6
jodecaesteker is on a distinguished road
Default

Wow, thanks! I just get an error on the line ".Execute Replace:=wdReplaceAll" (the first one): error 5560 (invalid search criterium). Could it have to do with the "[]{2,4}"? I changed it to " " (literally four spaces) and added two lines for the double spaces (.text = " " and .execute replace:wdReplaceAll)

Works great, thanks!
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to delete text in specific styles Delete specific text Jackson Word VBA 16 12-06-2019 08:24 PM
Macro to delete text in specific styles Macro to change specific text styles ljd108 Word VBA 3 10-22-2014 03:19 PM
Macro to delete text in specific styles Delete specific mass text on document JadeRisley Word 4 07-17-2013 11:11 PM
Macro to delete text in specific styles Using macro to delete styles fogharty Word 1 10-10-2011 03:42 PM
Macro to delete text in specific styles Need help extracting specific text from one doument to another with macro/VBA. zsmithku Word 1 04-15-2011 03:46 PM

Other Forums: Access Forums

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