+ Reply to Thread
Results 1 to 5 of 5

Tool Bars

Hybrid View

  1. #1
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Thumbs up Tool Bars

    This is a cross post, here is the link

    HTML Code: 
    I thought the problem was fixed but I just received a complaint from a coworker in my department. I'll restate the problem.

    Lets say I have a workbook, call it "W1", where I have attached a custom toolbar and button. And, lets say that the "W1" in a shared drive within my department. The problem is, when someone opens a different workbook, call it "W2", the toolbar that I attached to "W1" is active on "W2"-where it shouldn't be. I've told my coworker to right click the toolbar and deselect it, which he did. But, isn't there a way to have the toolbar active on just "W1"?
    Last edited by Mordred; 07-23-2010 at 03:40 PM.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Tool Bars

    Create the ToolBar using VBA


    Add_Toolbar.zip
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Tool Bars

    Hi Mordred,

    You would need to add code to the workbook_activate and workbook_deactivate modules in the workbook where you want to hide/see the custom toolbar. Here's a link to a page that explains the process, hopefully it helps you out: http://www.ozgrid.com/VBA/toolbar-remove-restore.htm

  4. #4
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Tool Bars

    Thanks, I'll try this again.

  5. #5
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Tool Bars

    Thank you for the link Paul, I tweeked the code a little but it finally works properly. You guys are the best.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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