+ Reply to Thread
Results 1 to 2 of 2

Display Custom Toolbar Linked to a Specific Workbook

  1. #1
    Registered User
    Join Date
    06-30-2020
    Location
    Berwyn, PA
    MS-Off Ver
    365
    Posts
    14

    Display Custom Toolbar Linked to a Specific Workbook

    I have created customized toolbar “Specific Workbook” to be linked to a specific workbook. How can I display “Specific Workbook” toolbar upon opening “Specific Workbook.xlsm?” When any other workbook is opened their default Excel toolbar will be displayed.

    I tried Workbook_Open and Workbook_Activate private subs with Application. CommandBars and I couldn’t get it to work.

    I found the code below on this website and slightly modified it.


    Please Login or Register  to view this content.
    I couldn’t get the above routine to work.

    What I need is a routine that will display “Specific Workbook” toolbar when "Specific Workbook”.xlsm" is opened if the user opens any other workbook their default toolbar will be displayed.

    Any suggestions?

    Thanks for your responses

    Ed
    Last edited by EMBBERWYN; 04-22-2022 at 05:08 PM. Reason: No code tags

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,499

    Re: Display Custom Toolbar Linked to a Specific Workbook

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 08-21-2017, 03:36 PM
  2. Adding a button to the toolbar that is linked to a specific macro
    By cadamhill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2010, 10:54 PM
  3. [SOLVED] Attaching a Custom Toolbar to Workbook
    By Mogadeet in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2009, 01:26 PM
  4. Isolating a custom toolbar to a specific spreadsheet
    By Gilgamesh in forum Excel General
    Replies: 3
    Last Post: 10-14-2005, 09:05 AM
  5. Assign a Custom Toolbar to only one WorkBook
    By Ken Soenen in forum Excel General
    Replies: 3
    Last Post: 09-28-2005, 09:05 AM
  6. [SOLVED] Displaying Custom Toolbar in Specific Worksheet
    By Thomas M in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-01-2005, 03:06 PM
  7. [SOLVED] How can I attach a custom toolbar to only appear on one specific .
    By ABuia in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2005, 11:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1