Word 2010: curly quotes

User avatar
John Gray
PlatinumLounger
Posts: 5401
Joined: 24 Jan 2010, 08:33
Location: A cathedral city in England

Word 2010: curly quotes

Post by John Gray »

In Word 2010, can "Replace as you type: 'straight quotes' with 'curly quotes' " be turned off for a single document rather than all documents? Thanks!
John Gray

Venison is quiet deer, and quite dear.

User avatar
HansV
Administrator
Posts: 78237
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Word 2010: curly quotes

Post by HansV »

I'm afraid not - it is an application-level setting.

You could copy the following macro into a module in your default template Normal.dotm:

Code: Select all

Sub ToggleCurlyQuotes()
    With Options
        .AutoFormatAsYouTypeReplaceQuotes = Not .AutoFormatAsYouTypeReplaceQuotes
    End With
End Sub
The macro toggles curly quotes on/off.
For easy use, you can assign the macro to a Quick Access Toolbar button and/or a custom keyboard shortcut.
Best wishes,
Hans

User avatar
John Gray
PlatinumLounger
Posts: 5401
Joined: 24 Jan 2010, 08:33
Location: A cathedral city in England

Re: Word 2010: curly quotes

Post by John Gray »

Thanks, Hans - I suspected as much...
John Gray

Venison is quiet deer, and quite dear.

User avatar
Charles Kenyon
4StarLounger
Posts: 596
Joined: 10 Jan 2016, 15:56
Location: Madison, Wisconsin

Re: Word 2010: curly quotes

Post by Charles Kenyon »

This is a Word setting rather than a document setting.
Remember that Ctrl+Z can be used to undo a conversion. It is a pain, but it works.

If you use the macro solution, you could save the macro in the document along with a keyboard shortcut and/or a QAT icon to trigger it. You could even put it in an AutoOpen and BeforeClose procedure to turn on and off for the document.
https://docs.microsoft.com/en-us/office ... eforeclose
http://addbalance.com/word/QATmodification.htm

User avatar
Nick Vittum
4StarLounger
Posts: 475
Joined: 21 Feb 2020, 21:27
Location: Vermont (USA)

Re: Word 2010: curly quotes

Post by Nick Vittum »

Probably you're done by now with whatever it was you were doing. But: when I've been faced with this problem in the past, I've done my typing in Notepad, and then cut/pasted into Word. The quote marks and apostrophes don't convert automatically when pasted in. Of course you then have to apply whatever other formatting you want manually...
—Nick

I’m only an egg (but hard-boiled)

User avatar
StuartR
Administrator
Posts: 12577
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Word 2010: curly quotes

Post by StuartR »

I suspect it might be easiest to create a macro that replaces all curly quotes with straight quotes and use a toolbar button to call it, or even run it automatically in a BeforeSave routine.
StuartR


User avatar
Jay Freedman
Microsoft MVP
Posts: 1313
Joined: 24 May 2013, 15:33
Location: Warminster, PA

Re: Word 2010: curly quotes

Post by Jay Freedman »

StuartR wrote:I suspect it might be easiest to create a macro that replaces all curly quotes with straight quotes and use a toolbar button to call it, or even run it automatically in a BeforeSave routine.

Code: Select all

Sub MakeQuotesStraight()
    Dim optSmartQs As Boolean
    
    ' save user's current option
    optSmartQs = Options.AutoFormatAsYouTypeReplaceQuotes
    Options.AutoFormatAsYouTypeReplaceQuotes = False
    
    With ActiveDocument.Range.Find
        .Text = Chr(34) ' finds both straight and curly quotes
        .Replacement.Text = Chr(34)
        .Execute Replace:=wdReplaceAll
    End With
    
    ' restore the user's option
    Options.AutoFormatAsYouTypeReplaceQuotes = optSmartQs
End Sub
This handles only quotes in the main body of the document, not in headers/footers, text boxes, or footnotes/endnotes. It could be extended to handle all locations (https://wordmvp.com/FAQs/Customization/ ... ywhere.htm).