OFF97: How to Change a Toolbar Button in the OSB

ID: Q159406


The information in this article applies to:


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, follow these steps:
  1. On the Start menu, click Run. In the Open box, type regedit 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 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:


  7. Shell32.dll,20
    Msoffice.exe,35
  8. 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.


  9. 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          : kbtool offosb 
Version           : WINDOWS:97
Platform          : WINDOWS 
Issue type        : kbhowto 

Last Reviewed: May 25, 1999