Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

June 25, 2002 12:00 AM

Adding Hot Keys and Tool Bar Buttons

Windows IT Pro
InstantDoc ID #25704
Rating: (3)

In last week's UPDATE, I shared Outlook's keyboard shortcuts for creating new items and launching key features. Although Outlook doesn't let you customize the keyboard layout as Microsoft Word does, you can create a few shortcuts of your own. The trick is that you need to add a toolbar command, then set a shortcut for the toolbar button.

For example, Outlook lets you press Ctrl+Shift+I to go to the Inbox and Ctrl+Shift+O to view the Outbox. But Ctrl+Shift+C doesn't display the Calendar or Contacts folder; instead, it creates a new item.

To create a toolbar button and shortcut to take you directly to the Calendar folder, right-click anywhere on the toolbars and choose Customize. On the Customize dialog box's Command tab, select the View category, then drag the command for Calendar to the toolbar, positioning it where you want your Calendar button to appear. The new Calendar button will show an underlined letter C to indicate that you should be able to press Alt+C to "click" the Calendar button. Close the Customize dialog box and try pressing Alt+C. Chances are that it won't work, unfortunately, because the Send/Receive button also uses Alt+C as its hot key.

Unless you want to study all the existing hot keys for menu and toolbar items to discover which letters aren't already in use, I suggest that you take a different approach and use numbers as the hot keys for launching Outlook folders. Right-click the toolbar and choose Customize again, then right-click the Calendar button. You should see that Outlook shows the button's name as &Calendar. The ampersand (&) preceding the letter C indicates that C is the hot key.

You can change both the name and the hot key. Type in 1- so that the new name for the button is &1-Calendar. Then close the Customize dialog box. You should now be able to press Alt+1 to launch the Calendar folder.

Have you written a Visual Basic for Applications (VBA) macro that you'd like to run without going through the Macros dialog box? With the Customize dialog box open, under Categories, select Macros and drag your macro to a toolbar. Macro names tend to be long and ugly, so right-click the macro button and change the macro's name. Add an ampersand to set a hot key if you use the macro frequently.

You can also build toolbar buttons to launch favorite Web pages without going to the Favorites menu. With the Customize dialog box open, hold down the Ctrl key as you drag any existing toolbar button to the position where you want your Web page launch button. (It doesn't matter which button you use because we're going to give it a complete makeover.) Right-click the button you just copied and give it a new name—with an ampersand to create a hot key if you like. Then, choose Assign Hyperlink, Open to display a dialog box in which you can enter any URL or browse to a folder or file on your system. After you enter the link, click OK, then close the Customize dialog box. Note that launching a page from the Favorites menu opens it in Outlook and launching the page from a custom toolbar button opens the page in your browser.

To back up all your toolbar customizations, make a copy of the outcmd.dat file. The location will vary, depending on your version of Windows and network setup, so probably the easiest way to find the file is to search the drive on which Windows is installed.

Related Content:

ARTICLE TOOLS

Comments
  • Anonymous User
    8 years ago
    Oct 19, 2004

    Back to Stephan's point...

    If you hit Alt-G first and then the Alt-1, or Alt-2 that will work.

    The Alt-G gets the focus on the hotkeys/toolbar instead of the days I think. Works for me.

  • Anonymous User
    8 years ago
    Oct 19, 2004

    This Rocks and is just what I was looking for!! Thank you so much!!!

  • Stephan Grubbe
    9 years ago
    Feb 12, 2003

    The only problem using numbers as shortcut approach is that the number are taken when inside the calendar. They are used as shortcuts to how many days to display in your view.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.