Apply Style Using Keyboard Only

  • Thread starter Thread starter Ben Foster
  • Start date Start date
B

Ben Foster

I want to be able to apply a style to the select text using the keyboard
only. I can't find a way to do this - I have to use the mouse. At present I
click on the Style drop down and then select a style. I want to be able to
drop down the list using the keyboard only. Can anyone help ?

Ben Foster
 
Hi,

Try Ctrl-Shift-S. It depends on your version of Word. In Word 97 this lets
you access the styles window on the formatting toolbar and type in your
style name. Then you hit Enter to apply the style.

If you have a later version you'll need to add the following macro that
Klaus Linke wrote for me a while back. Then assign that macro to a keyboard
shortcut.

Sub MyStyleDropDown()
' from Klaus Linke on newsgroups
' 2003 December 12
'
Dim myCBCB As CommandBarComboBox
Set myCBCB = _
CommandBars.FindControl(id:=1732, _
Visible:=True)
If myCBCB Is Nothing Then
Dialogs(wdDialogFormatStyle).Show
Else
SendKeys "{ENTER}"
myCBCB.SetFocus
End If
End Sub

Hope this helps.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
Hi Charles,

I think the macro was just needed to fix some bug in Word 2000, and only if the style dropdown was on a custom toolbar?

Ctrl+Shift+S seems to work fine in Word2003 (no matter where the style dropdown is).

Once the combo box has the focus, you can expand it with Alt+Down, and then move around with the cursor keys.

Regards,
Klaus
 
Charles,

Ctrl-Shift-S works great. Thanks.

Ben

Charles Kenyon said:
Hi,

Try Ctrl-Shift-S. It depends on your version of Word. In Word 97 this lets
you access the styles window on the formatting toolbar and type in your
style name. Then you hit Enter to apply the style.

If you have a later version you'll need to add the following macro that
Klaus Linke wrote for me a while back. Then assign that macro to a
keyboard shortcut.

Sub MyStyleDropDown()
' from Klaus Linke on newsgroups
' 2003 December 12
'
Dim myCBCB As CommandBarComboBox
Set myCBCB = _
CommandBars.FindControl(id:=1732, _
Visible:=True)
If myCBCB Is Nothing Then
Dialogs(wdDialogFormatStyle).Show
Else
SendKeys "{ENTER}"
myCBCB.SetFocus
End If
End Sub

Hope this helps.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
Ben

It depends on your version of Word but the basics is similar for all. Select
Format, Style to open the Style dialog or Task Pane. Click on the drop down
button on the Style you want to assign a shortcut. Select Modify. Check the
Add to Template box and then click on Format. The lower selection is
Keyboard Shortcut. Assign your shortcut and OK out of the dialog. Do the
same for the remainder of the styles. Make sure that you save changes to the
global template when prompted on closing Word (and Outlook if it is open).

--
Terry Farrell - Word MVP
http://word.mvps.org/

:I want to be able to apply a style to the select text using the keyboard
: only. I can't find a way to do this - I have to use the mouse. At present
I
: click on the Style drop down and then select a style. I want to be able to
: drop down the list using the keyboard only. Can anyone help ?
:
: Ben Foster
:
:
 
Ah... OK then I can remove it from my Add-In since I'm now using 2003.
Thanks for the update. Glad I suggested trying the shortcut first!
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
I guess I still need to use it on my system because I use my own custom
formatting toolbar.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
Back
Top