Unable to program shortcut for ć symbol

jmt356
SilverLounger
Posts: 2371
Joined: 28 Mar 2010, 01:49

Unable to program shortcut for ć symbol

Post by jmt356 »

I would like to program a shortcut such that typing ' + c causes the symbol ć to appear (currently, ' + e causes the é symbol to appear). I went into Insert | Symbol and found the ć symbol and selected Shortcut key. However, when I type ' + c in the Press new shortcut key dialogue, nothing appears. How can I enter ' + c into the dialogue?
Regards,

JMT

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

Re: Unable to program shortcut for ć symbol

Post by HansV »

Press Alt+F11 to activate the Visual Basic Editor.
Press Ctrl+G to activate the Immediate window.
Copy the following line into the window:

Code: Select all

KeyBindings.Add wdKeyCategorySymbol, ChrW(&H107), wdKeySingleQuote, wdKeyC
With the insertion point anywhere in that line, press Enter.
Press Alt+F4 to close the Visual Basic Editor.

If you ever want to undo this, execute the following line from the Immediate window:

Code: Select all

FindKey(wdKeySingleQuote, wdKeyC).Disable
Best wishes,
Hans

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

Re: Unable to program shortcut for ć symbol

Post by HansV »

P.S. the shortcut will be stored in your default template Normal.dot, so when you quit Word after assigning the shortcut, you may be asked whether you want to save changes to Normal.dot. Answer Yes.
Best wishes,
Hans