![]() |
|
#1
|
|||
|
|||
![]()
I have document where the closing quotation mark is preceded by a space. I need to remove that space. However I cannot search for a space followed by the quotation mark and do a global replace, because the opening quotation mark is always preceded by a space.
How can I do the correction using wildcard search and replace? The document contains too many of these to make manual replacements feasible. Example: This is simply a "political agenda ". Must become: This is simply a "political agenda". I also need to mention that the "closing" quotation mark is actually an "opening" quotation mark i.e. a ^0147 rather than a ^0148. This is simply a ^0147political agenda ^0147. Must become: This is simply a ^0147political agenda^0148. Last edited by WJSwanepoel; 02-10-2025 at 12:05 AM. Reason: To give more clarity |
#2
|
||||
|
||||
![]()
Quite simple. Use an ordinary Find/Replace for:
Find = ^32". Replace = ". then Find = " Replace = "
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
This does not work for me. The closing quote is not always followed by a full stop. It can be almost anything a space, a comma, a colon, a Questions mark etc.
Last edited by WJSwanepoel; 02-10-2025 at 04:31 AM. Reason: Typing erros |
#4
|
||||
|
||||
![]()
It shouldn't matter that there's a trailing space after the closing quote. If you want to deal with other punctuation characters, you could use a wildcard Find/Replace where:
Find = [ ^s]"([.,;:\?\!]) Replace = "\1 then: Find = " Replace = "
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
This finds nothing, see attached.
|
#6
|
||||
|
||||
![]()
There are only two reasons it wouldn't find anything:
1. You don't have any content like "political agenda ".; or 2. You didn't check the 'Use wildcards' option.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
Tags |
quotation mark, replace, wildcard |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find and replace paragraph mark on selected text and replace it with space in PowerPoint VBA | laith93 | PowerPoint | 0 | 11-09-2023 04:34 AM |
Trim trailing space macro stopped working | jec1 | Word VBA | 2 | 08-01-2021 11:32 PM |
![]() |
jeffreybrown | Word VBA | 8 | 08-22-2018 03:31 PM |
![]() |
lexsper | Word | 3 | 04-07-2015 07:12 AM |
Can't find space before closing quotation marks | wardw | Word | 7 | 01-16-2014 12:13 PM |