Is there a way to add quotation marks to highlighted text?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can you automatically add quotation marks or parenthesis to text that you
highlight?
 
There's no built-in way. However, here's the macro I use:

Sub QuoteIt()
Selection.Copy
Selection.TypeText Text:=Chr$(147) + Chr$(148)
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.Paste
Selection.MoveRight Unit:=wdCharacter, Count:=1
End Sub

If you want straight quotes and have Smart Quotes turned off in Autoformat
as you type, you can substitute 34 for 147 and 148 in the 3rd line.

I have this macro assigned to Ctrl+Shift+".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top