Word VBA >> Ignore All (spell check) on words with curly quotes

by and » Sat, 07 Aug 2004 01:51:37 GMT

In Word 2000 and Word XP, when I check the spelling of a document that
contains curly quotes, words that contain an apostrophe are not included
in the Ignore All list when I click a misspelled word in the text and
select the Ignore All option. (The curly quotes are formed by the
AutoFormat As You Type option for replacing "Straight Quotes" with
"Smart Quotes").

Example: What was Bwa'ana looking for?

In this example, Bwa'ana is considered two words, Bwa and ana. Now if I
use only straight quotes, Bwa'ana is considered a single word, which is
included in the Ignore All list.

So now comes my question: Is there a way to have Word 2000 and XP
include words with curly quotes in the middle into the Ignore All list
(or in a custom dictionary, for that matter) as a single word?

I know I can use a placeholder for the apostrophe and replace it after
the spell check, but that can be quite inconvenient when you have lots
of those words.

TIA from AndY


Word VBA >> Ignore All (spell check) on words with curly quotes

by Word Heretic » Tue, 10 Aug 2004 14:47:58 GMT


G'day and < XXXX@XXXXX.COM >,

I entered Bwa'ana with the straight quote, added it to the dictionary,
then neither straight nor curly quote instances were reported as
spelling errors.

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


and reckoned:





Similar Threads

1. curly quotes became straight, can't get curly bakc

something changed curly quotes to straight, and now I can't resume curly 
quotes.

2. Converting straight quotes to curly quotes and apostrophes

3. Changing curly quotes to straight quotes

Hi novice04,

The box to uncheck is the one on the "AutoFormat As You Type" tab,
not the "AutoFormat" tab. Then you just enter an ordinary double
quote in both the Find What and the Replace With boxes and click
Replace All; and repeat with single quotes.

If you need this in a macro, try:

Dim QuoteSetting As Boolean
'Store current curly-vs-straight setting to restore later
QuoteSetting = Options.AutoFormatAsYouTypeReplaceQuotes
Options.AutoFormatAsYouTypeReplaceQuotes = False
With Selection.Find
    .Text = Chr$(34)
    .Replacement.Text = Chr$(34)
    .Wrap = wdFindContinue
    .Forward = True
    .Format = False
    .MatchCase = False
    .MatchWildcards = False
    .Execute Replace:=wdReplaceAll
End With
'Restore user's original curly-vs-straight setting
Options.AutoFormatAsYouTypeReplaceQuotes = QuoteSetting


Mark Tangard, Microsoft Word MVP
Note well: MVPs do not work for Microsoft.
"Life is nothing if you're not obsessed." --John Waters


novice04 wrote:

> Ie done a search on this topic and already tried to advice to 
 > type Alt + 0147 in the find box and to replace this with straight
 > quotes, but I just get two curly quotes when I do this.  The eplace
> straight quotes with smart quotesAutoFormat box was already unchecked
>> before I opened the document.  I'm using TNR 11 point font.  Any 
>> suggestions for a find/replace or macro to replace curly single and
>> double quotes with straight single and double quotes?

4. Change quotes into curly quotes with VBA? - Word VBA

5. Can I search for straight quotes (") and exclude curly quotes

6. Curly quotes to French Quotes - Word Document management

7. Change straight quotes to curly quotes

I've seen a discussion on how to change curly quotes to straight quotes, but 
not the other way around. Does someone know the code to "smart quotes" or 
"curly quotes"?
Thank you.

8. Changing curly quotes to straight quotes - Word Document management