OFF97: How to Change a Toolbar Button in the OSB

Last reviewed: January 15, 1998
Article ID: Q159406
The information in this article applies to:
  • Microsoft Office 97 for Windows
  • Microsoft Office Shortcut Bar 97 for Windows

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, you should first make a backup copy of the registry files (System.dat and User.dat). Both are hidden files in the Windows folder.

SUMMARY

On the Shortcut Bar for Microsoft Office 97, each built-in toolbar has its own button. This article explains how to use different button icons for toolbars that you create.

MORE INFORMATION

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall Windows 95. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the Changing Keys And Values online Help topic in Registry Editor (Regedit.exe). Note that you should make a backup copy of the registry files (System.dat and User.dat) before you edit the registry.

The Built-in Buttons

The following table lists the built-in toolbars and their buttons.

   Toolbar      Button icon
   ------------------------------------------------------------------------

   Office       Four-color puzzle piece superimposed over a folder
   Desktop      Desk lamp and a desk
   Quickshelf   Blue book superimposed over a folder
   Favorites    Folder that contains a blue asterisk

These buttons appear above or to the right of the name of the toolbar.

NOTE: When you create a new toolbar, the button icon for the new toolbar is a generic folder.

Changing the Button Icon for a New Toolbar

Note that you must use the following steps for each person who uses the computer because the settings are user-specific.

To change the button icon for a new toolbar, use the following steps:

  1. On the Start menu, click Run. In the Open box, type "regedit" (without the quotation marks) and click OK.

  2. In the registry tree, in the order given, click the plus signs to the left of each of the following items:

          HKEY_CURRENT_USER
          Software
          Microsoft
          Office
          8.0
          Shortcut Bar
          Toolbars
    

    The path should be the following:

          HKEY_CURRENT_USER\Software\Microsoft\Office\8.0\
          Shortcut Bar\Toolbars
    

  3. In the registry tree, click the entry for the custom toolbar with the button you want to change. (For example, click Custom.)

  4. On the Edit menu, point to New, and click String Value. Type "Face" (without the quotation marks) and press ENTER.

    If Face is already listed in the right pane of the Registry Editor window, click it once.

  5. On the Edit menu, click Modify.

  6. In the Value Data box, type the name of a file that contains the icons, followed by a comma and the number of the icon in the file. The following examples illustrate the syntax to use:

          Shell32.dll,20
          Msoffice.exe,35
    

  7. Press ENTER or click OK.

    NOTE: You can use any file that contains icons, including .exe and .dll files. You must know the index number of the icon in the file in order to use the file.

  8. On the Registry menu, click Exit.

When you quit and restart the Shortcut Bar, the toolbar displays a different button.

The following table lists suggested values to use in step 6.

   Value             Picture
   -----------------------------------------------
   Shell32.dll,4     Generic folder (closed)
   Shell32.dll,5     Generic folder (open)
   Shell32.dll,20    Folder with superimposed icon
   Shell32.dll,21    Open folder with paper
   Shell32.dll,37    Folder with superimposed icon
   Shell32.dll,40    Microsoft Windows logo


Additional query words: OFF97 97
Keywords : offosb kbtool
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 15, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.