OK, here's the answer:
- Go to
View
tab >Macros
>Record Macro
- Give the macro a name and assign it to a key / shortcut (key combination)
- Record something (does not matter what, we will reset it in a moment). Click on
Macros
>Stop Recording
to stop. - Repeat steps 1-3 in order to create another macro (so we have now 2 macros total).
- Go to
View
tab >Macros
>View Macros
- Choose the first macro and click
Edit
- Delete all the lines inside the macro's code (it's Visual Basic) except the
sub Macro_Name()
andEnd Sub
- Copy this line into the sub:
Options.AutoFormatReplaceQuotes = True
- Do the same to the other macro, but write
Options.AutoFormatReplaceQuotes = False
instead.
Ultimately, that's the code (you may have other names and/or descriptions for your macros): Also note that in Visual Basic, '
defines a comment line (usually it turns the line green), means that line will not be executed.
Sub ToggleQuotes1() ' ' ToggleQuotes1 Macro ' Smart Quotes ' Options.AutoFormatReplaceQuotes = True End Sub Sub ToggleQuotes2() ' ' ToggleQuotes2 Macro ' Regular quotes ' Options.AutoFormatReplaceQuotes = False End Sub
P.S - There are two smart qoutes options under proofing. One is under the AutoFormat
tab and the other is AutoFormat as you type
. Here I've changes the first one, but the second one goes like that: Options.AutoFormatAsYouTypeReplaceQuotes = True Options.AutoFormatAsYouTypeReplaceQuotes = False