Forum Discussion

mparento's avatar
mparento
Copper Contributor
May 24, 2022

Use style to add quotation marks

Hi, I use a character style to highlight some special expressions in my document. Now I want to have quotation marks around these expressions. One convenient way to do it would be to ask the style to...
  • mparento While you cannot include the quotation marks as part of the style, using a macro such as the following, you could have the style specified in the macro applied to the selected text and have quotation marks inserted before and after it

    Set rng = Selection.Range
    With rng
        .Style = "Strong"
        .InsertBefore Chr(34)
        .InsertAfter Chr(34)
    End With
    

Resources