Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-03-2016, 02:26 PM
Arg0nawt Arg0nawt is offline Macro to find nested double quotes in document Windows 10 Macro to find nested double quotes in document Office 2016
Novice
Macro to find nested double quotes in document
 
Join Date: May 2016
Posts: 2
Arg0nawt is on a distinguished road
Default Macro to find nested double quotes in document

Hi,

I'm attempting to write a macro which finds nested double quotes in a document, but I'm not having much luck. I would be looking to find something like this:

"When he said "hello," it really made me think."

The reason I'm trying to do this is because the inside pair of quotes should be single quotes, not double. So I'm attempting to correct all instances where double quotes are used inside of another pair of double quotes. I'm fairly certain that all quote marks would be curly, not straight.

Does anyone have any insight on how to create this macro?



Thanks,
Arg0nawt
Reply With Quote
  #2  
Old 05-03-2016, 03:07 PM
macropod's Avatar
macropod macropod is offline Macro to find nested double quotes in document Windows 7 64bit Macro to find nested double quotes in document Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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 could do this via a wildcard Find/Replace. where:
Find = (“[!”]@)“(*)”(*”)
Replace = \1‘\2’\3
No macros required.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 05-03-2016, 06:13 PM
Arg0nawt Arg0nawt is offline Macro to find nested double quotes in document Windows 10 Macro to find nested double quotes in document Office 2016
Novice
Macro to find nested double quotes in document
 
Join Date: May 2016
Posts: 2
Arg0nawt is on a distinguished road
Default

I tried some wildcard solutions but wasn't able to figure it out. The above worked perfectly. You're the best!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to find nested double quotes in document How to replace straight quotes with smart quotes in existing document PABwriter Word 4 05-27-2016 03:36 PM
Macro to find nested double quotes in document Find where find text contains a double quote norgro Word VBA 1 01-23-2015 10:58 PM
Macro to find nested double quotes in document Smart quotes find/replace alderfall Word 3 10-24-2013 04:38 AM
Macro to find nested double quotes in document Changing single-quotes to double-quotes Bobosmite Word 5 04-15-2013 06:40 AM
Changing the Double Quotes kosky Word 1 05-24-2012 04:20 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:22 PM.


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