Search code examples
ms-wordvstoquotesapostropheword-addins

Turn off Auto Smart Quotes in Word VSTO


Word has a feature called "Auto Smart Quotes", which changes straight quotes and straight apostrophes into slanted quotes and slanted apostrophes. How can I turn this feature off, using a VSTO Addin?

I tried :Application.Selection.NoProofing = True, but it did not work.

I'm using Visual Studio 2015.


Solution

  • I had no idea, but when I launched Word, pressed F2 in the IDE and searched for "quotes", it became apparent it was

    Application.Options.AutoFormatReplaceQuotes = False
    

    and/or possibly

    Application.Options.AutoFormatAsYouTypeReplaceQuotes = False