#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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] |
#3
|
|||
|
|||
I tried some wildcard solutions but wasn't able to figure it out. The above worked perfectly. You're the best!
|
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to replace straight quotes with smart quotes in existing document | PABwriter | Word | 4 | 05-27-2016 03:36 PM |
Find where find text contains a double quote | norgro | Word VBA | 1 | 01-23-2015 10:58 PM |
Smart quotes find/replace | alderfall | Word | 3 | 10-24-2013 04:38 AM |
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 |