Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 01-22-2017, 04:18 PM
macropod's Avatar
macropod macropod is offline A Widlcard or Macro to Properly Remove Spaces Between Commas? Windows 7 64bit A Widlcard or Macro to Properly Remove Spaces Between Commas? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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 can't automatically fix all those combinations via Find/Replace. You would need to do a Find/Replace with, say:
Find = "^w
Replace = "
and stepping though each one, replacing on a case-by-case basis, following by a Find/Replace with:
Find = ^w"
Replace = "
and stepping though each of those, replacing on a case-by-case basis. There is simply no way Word can tell whether a given quote mark is misplaced. Yes, a Find/Replace expression could be crafted to look for certain patterns, but that would be thrown off immediately there was a mismatch - I've seen far too many OCR'd documents where quotes have been misinterpreted as some other character to assume they'd all be OK.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I remove spaces between only Chinese characters? sivartnosredna7 Word 2 01-09-2017 05:33 AM
How to remove spaces from Cells which are at the end of value? LearnerExcel Excel 2 12-19-2016 01:10 PM
Macro does not run properly dherr Word VBA 2 02-19-2015 08:50 AM
remove repeated words with " macro " or " wild cards " in texts with parentheses and commas jocke321 Word VBA 2 12-10-2014 11:27 AM
editing text and remove spaces romanticbiro Word VBA 5 07-04-2014 07:42 PM

Other Forums: Access Forums

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