create account

Organizing Your Keyboard Shortcuts in Microsoft Word by ghasemkiani

View this thread on: hive.blogpeakd.comecency.com
· @ghasemkiani ·
$45.02
Organizing Your Keyboard Shortcuts in Microsoft Word
In the [previous post](https://steemit.com/vba/@ghasemkiani/creating-keyboard-shortcuts-with-macros-in-microsoft-word), I described how you can define keyboard shortcuts from VBA in Microsoft Word. As I said, this is a powerful technique that can boost your productivity greatly. Now, consider this situation. What if you want to have multiple sets of shortcuts that can be switched easily? For example, you may have a set of shortcuts for working with drawing objects, another set for working with text, etc. The whole point is that if you can switch whole sets of shortcuts, you can reassign familiar key combinations to other actions.

This can be easily done. For each set of shortcuts, create a macro that defines the shortcut keys and a macro that clears those shortcuts. That's all it takes to have multiple sets of easily interchangeable shortcut sets.

Here is an example:

```vba
	Sub DefineSet1()
		KeyBindings.Add KeyCategory:=wdKeyCategoryCommand, Command:="ViewWeb", KeyCode:=BuildKeyCode(wdKeyW, wdKeyAlt, wdKeyControl)
		KeyBindings.Add KeyCategory:=wdKeyCategoryMacro, Command:="MyMacro", KeyCode:=BuildKeyCode(wdKeyS, wdKeyAlt, wdKeyShift)
		KeyBindings.Add KeyCategory:=wdKeyCategoryStyle, Command:="MyStyle", KeyCode:=BuildKeyCode(wdKeyC, wdKeyAlt, wdKeyControl, wdKeyShift)
		KeyBindings.Add KeyCategory:=wdKeyCategorySymbol, Command:=" " & ChrW(Val("&H2011")), KeyCode:=BuildKeyCode(wdKeyHyphen, wdKeyAlt, wdKeyControl, wdKeyShift)
	End Sub
	Sub ClearSet1()
		FindKey(BuildKeyCode(wdKeyW, wdKeyAlt, wdKeyControl)).Clear
		FindKey(BuildKeyCode(wdKeyS, wdKeyAlt, wdKeyShift)).Clear
		FindKey(BuildKeyCode(wdKeyC, wdKeyAlt, wdKeyControl, wdKeyShift)).Clear
		FindKey(BuildKeyCode(wdKeyHyphen, wdKeyAlt, wdKeyControl, wdKeyShift)).Clear
	End Sub
```
For each set of shortcut keys, you must create one macro for assigning the key combinations and one macro for clearing them. By running the respective macros, you can easily switch between multiple sets of shortcut keys.

---

## Related Posts

* [Creating Keyboard Shortcuts with Macros in Microsoft Word](https://steemit.com/vba/@ghasemkiani/creating-keyboard-shortcuts-with-macros-in-microsoft-word)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorghasemkiani
permlinkorganizing-your-keyboard-shortcuts-in-microsoft-word
categoryvba
json_metadata{"tags":["vba","programming","technology","microsoft-office","microsoft-word"],"app":"juya/app","format":"markdown","percent_steem_dollars":10000}
created2017-12-12 12:38:36
last_update2017-12-12 12:38:36
depth0
children17
last_payout2017-12-19 12:38:36
cashout_time1969-12-31 23:59:59
total_payout_value41.780 HBD
curator_payout_value3.237 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,170
author_reputation90,438,911,242,538
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,233,062
net_rshares9,676,004,737,652
author_curate_reward""
vote details (27)
@abdur1122 ·
sorry for late . now i watch this post dear. alredy resteemed this post @ghasemkiani
properties (22)
authorabdur1122
permlinkre-ghasemkiani-organizing-your-keyboard-shortcuts-in-microsoft-word-20171212t143716981z
categoryvba
json_metadata{"tags":["vba"],"users":["ghasemkiani"],"app":"steemit/0.1"}
created2017-12-12 14:37:18
last_update2017-12-12 14:37:18
depth1
children0
last_payout2017-12-19 14:37:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length84
author_reputation4,746,801,589,327
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,245,720
net_rshares0
@andrekweku ·
$0.05
Helpful. Lemme just get to it.
👍  
properties (23)
authorandrekweku
permlinkre-ghasemkiani-organizing-your-keyboard-shortcuts-in-microsoft-word-20171212t124459779z
categoryvba
json_metadata{"tags":["vba"],"app":"steemit/0.1"}
created2017-12-12 12:45:24
last_update2017-12-12 12:45:24
depth1
children0
last_payout2017-12-19 12:45:24
cashout_time1969-12-31 23:59:59
total_payout_value0.048 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length30
author_reputation2,079,252,945,473
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,233,691
net_rshares10,979,828,396
author_curate_reward""
vote details (1)
@atherz ·
nice post. shared :)
properties (22)
authoratherz
permlinkre-ghasemkiani-organizing-your-keyboard-shortcuts-in-microsoft-word-1513085812446t60ae8173-6e90-47d2-a498-7195227bd253uid
categoryvba
json_metadata{"tags":["comment"],"app":"steemj/0.4.0","format":"markdown"}
created2017-12-12 13:36:51
last_update2017-12-12 13:36:51
depth1
children0
last_payout2017-12-19 13:36:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length20
author_reputation895,362,037,265
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries
0.
accountsteemj
weight250
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,238,995
net_rshares0
@buildawhale ·
<p>This post has received a 10.55 % upvote from @buildawhale thanks to: @ghasemkiani.
Send at least 1 SBD to @buildawhale with a post link in the memo field for a portion of the next vote.</p>

<p>To support our daily curation initiative, please vote on my owner, @themarkymark, as a <a href="https://steemit.com/witness-category/@themarkymark/witness-themarkymark">Steem Witness</a></p>
properties (22)
authorbuildawhale
permlinkre-ghasemkiani-organizing-your-keyboard-shortcuts-in-microsoft-word-20171212t125059961z
categoryvba
json_metadata{"tags":["vba"],"app":"drotto/0.0.2d"}
created2017-12-12 12:51:06
last_update2017-12-12 12:51:06
depth1
children0
last_payout2017-12-19 12:51:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length388
author_reputation26,662,416,482,884,367
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,234,286
net_rshares0
@five34a4b ·
organizing-your-keyboard-shortcuts-in-microsoft-word-comment
you always have the best content ghasemkiani keep it up!
properties (22)
authorfive34a4b
permlinkorganizing-your-keyboard-shortcuts-in-microsoft-word-comment
categoryvba
json_metadata{}
created2017-12-12 18:55:21
last_update2017-12-12 18:55:21
depth1
children0
last_payout2017-12-19 18:55:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length56
author_reputation1,119,681,610,239
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,274,727
net_rshares0
@hafiz34 ·
$0.05
It is considered as a "helpful post for the community". Keep posting.
👍  
properties (23)
authorhafiz34
permlinkre-ghasemkiani-organizing-your-keyboard-shortcuts-in-microsoft-word-20171212t160521064z
categoryvba
json_metadata{"tags":["vba"],"community":"busy","app":"busy/2.1.0"}
created2017-12-12 16:05:24
last_update2017-12-12 16:05:24
depth1
children0
last_payout2017-12-19 16:05:24
cashout_time1969-12-31 23:59:59
total_payout_value0.050 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length69
author_reputation115,048,184,463,934
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,256,308
net_rshares10,982,999,514
author_curate_reward""
vote details (1)
@jawad09 ·
Wow, very very useful techniques dear @ghasemkiani. This is like a magic using macros. Thanks dear. Keep Sharing!
properties (22)
authorjawad09
permlinkre-ghasemkiani-organizing-your-keyboard-shortcuts-in-microsoft-word-20171212t133158858z
categoryvba
json_metadata{"tags":["vba"],"users":["ghasemkiani"],"app":"steemit/0.1"}
created2017-12-12 13:32:00
last_update2017-12-12 13:32:00
depth1
children0
last_payout2017-12-19 13:32:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length113
author_reputation34,832,615,044,215
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,238,469
net_rshares0
@nimik ·
$0.05
This is very useful as we all need the help of shortcut.
Thanks for sharing this post.
👍  
properties (23)
authornimik
permlinkre-ghasemkiani-organizing-your-keyboard-shortcuts-in-microsoft-word-20171212t154241776z
categoryvba
json_metadata{"tags":["vba"],"app":"steemit/0.1"}
created2017-12-12 15:42:42
last_update2017-12-12 15:42:42
depth1
children0
last_payout2017-12-19 15:42:42
cashout_time1969-12-31 23:59:59
total_payout_value0.042 HBD
curator_payout_value0.006 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length86
author_reputation856,557,847,201
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,253,600
net_rshares10,982,999,514
author_curate_reward""
vote details (1)
@rabeel ·
$0.05
@ghasemkiani you realy done an awesome work on the two sides by utilizing Steemit Forum. in one hand you shared instructive related articles for extraordinarily understudies and in the other hand you bolstered everybody who comment on your blog, that is realy appreciable. your past and this post are extremely useful for "Keyboard Shortcuts in Microsoft Word" an excessive amount of learnt from you. Much obliged.
👍  
properties (23)
authorrabeel
permlinkre-ghasemkiani-organizing-your-keyboard-shortcuts-in-microsoft-word-20171212t152913572z
categoryvba
json_metadata{"tags":["vba"],"users":["ghasemkiani"],"app":"steemit/0.1"}
created2017-12-12 15:29:24
last_update2017-12-12 15:29:24
depth1
children0
last_payout2017-12-19 15:29:24
cashout_time1969-12-31 23:59:59
total_payout_value0.038 HBD
curator_payout_value0.011 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length414
author_reputation136,994,730,017,550
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,251,856
net_rshares10,982,999,514
author_curate_reward""
vote details (1)
@sajumiah ·
well done sir
properties (22)
authorsajumiah
permlinkre-ghasemkiani-organizing-your-keyboard-shortcuts-in-microsoft-word-20171212t141151837z
categoryvba
json_metadata{"tags":["vba"],"app":"steemit/0.1"}
created2017-12-12 14:12:06
last_update2017-12-12 14:12:06
depth1
children0
last_payout2017-12-19 14:12:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length13
author_reputation311,407,495,477
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,242,842
net_rshares0
@sam1210 ·
Helpful post.
properties (22)
authorsam1210
permlinkre-ghasemkiani-organizing-your-keyboard-shortcuts-in-microsoft-word-20171212t144525674z
categoryvba
json_metadata{"tags":["vba"],"app":"steemit/0.1"}
created2017-12-12 14:45:33
last_update2017-12-12 14:45:33
depth1
children0
last_payout2017-12-19 14:45:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length13
author_reputation1,732,544,462,145
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,246,656
net_rshares0
@sam1210 ·
$0.05
Nice post. Useful also
👍  
properties (23)
authorsam1210
permlinkre-ghasemkiani-organizing-your-keyboard-shortcuts-in-microsoft-word-20171212t144710227z
categoryvba
json_metadata{"tags":["vba"],"app":"steemit/0.1"}
created2017-12-12 14:47:15
last_update2017-12-12 14:47:15
depth1
children0
last_payout2017-12-19 14:47:15
cashout_time1969-12-31 23:59:59
total_payout_value0.038 HBD
curator_payout_value0.011 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length22
author_reputation1,732,544,462,145
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,246,864
net_rshares10,982,999,514
author_curate_reward""
vote details (1)
@sangeeta ·
good article 
I hope everyone will be benefited
properties (22)
authorsangeeta
permlinkre-ghasemkiani-organizing-your-keyboard-shortcuts-in-microsoft-word-20171212t134434025z
categoryvba
json_metadata{"tags":["vba"],"app":"steemit/0.1"}
created2017-12-12 13:44:39
last_update2017-12-12 13:44:39
depth1
children0
last_payout2017-12-19 13:44:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length47
author_reputation9,637,223,782,143
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,239,825
net_rshares0
@shahin24 ·
very useful post sharing dear  @ghasemkiani  for Microsoft-word user . thanx you . this post #resteem & upvote done .
properties (22)
authorshahin24
permlinkre-ghasemkiani-organizing-your-keyboard-shortcuts-in-microsoft-word-20171212t124222765z
categoryvba
json_metadata{"tags":["vba","resteem"],"users":["ghasemkiani"],"app":"steemit/0.1"}
created2017-12-12 12:42:24
last_update2017-12-12 12:42:24
depth1
children0
last_payout2017-12-19 12:42:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length117
author_reputation8,181,493,131,349
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,233,431
net_rshares0
@sorayakhatun ·
i likes in your post dear
properties (22)
authorsorayakhatun
permlinkre-ghasemkiani-organizing-your-keyboard-shortcuts-in-microsoft-word-20171212t124225756z
categoryvba
json_metadata{"tags":["vba"],"app":"steemit/0.1"}
created2017-12-12 12:42:30
last_update2017-12-12 12:42:30
depth1
children0
last_payout2017-12-19 12:42:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length25
author_reputation16,243,060,480,961
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,233,444
net_rshares0
@techshahinpro ·
"Nice post share sir & you always give our helpful post & thanx you so much for sharing . #resteem & upvote done .
👍  
properties (23)
authortechshahinpro
permlinkre-ghasemkiani-organizing-your-keyboard-shortcuts-in-microsoft-word-20171212t124718340z
categoryvba
json_metadata{"tags":["vba","resteem"],"app":"steemit/0.1"}
created2017-12-12 12:47:18
last_update2017-12-12 12:47:18
depth1
children0
last_payout2017-12-19 12:47:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length114
author_reputation504,698,461,789
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,233,885
net_rshares233,491,686
author_curate_reward""
vote details (1)
@ugetfunded ·
$0.05
Hey @ghasemkiani, This is my very first comment on any of your posts. I randomly landed here and after reading this post, I feel happy that I did.  Though we are living in modern times where we can solve the problems with a single click yet modern life is not simple but complicated. So, the technique that you mentioned is a smart way to save time. 

Thank You. Keep sharing the smart posts. Stay awesome man. 

Steem On!
👍  
properties (23)
authorugetfunded
permlinkre-ghasemkiani-organizing-your-keyboard-shortcuts-in-microsoft-word-20171212t130353311z
categoryvba
json_metadata{"tags":["vba"],"users":["ghasemkiani"],"app":"steemit/0.1"}
created2017-12-12 13:03:54
last_update2017-12-12 13:03:54
depth1
children0
last_payout2017-12-19 13:03:54
cashout_time1969-12-31 23:59:59
total_payout_value0.048 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length422
author_reputation13,570,875,538,010
root_title"Organizing Your Keyboard Shortcuts in Microsoft Word"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id23,235,515
net_rshares10,982,987,617
author_curate_reward""
vote details (1)