+ Reply to Thread
Results 1 to 6 of 6

Hide unhide custom toolbar (title change)

  1. #1
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,163

    Hide unhide custom toolbar (title change)

    How do you make a custom tool bar inactive when no workbooks are open?
    Greyed out, but some what visible?

    Possibly cross referenced to this post of mine.
    http://www.excelforum.com/excel-prog...is-active.html
    Last edited by Rick_Stanich; 12-02-2010 at 04:16 PM.
    Regards

    Rick
    Win10, Office 365

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Grey out custom toolbar

    You'd have to disable all its controls
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,163

    Re: Grey out custom toolbar

    oops, wrong post.

  4. #4
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,163

    Re: Grey out custom toolbar

    Im stuck at a point on how to make my code work when any workbook opens or closes.

    Do I have to place code in every workbook?

    what I have now.
    Please Login or Register  to view this content.
    The above is only affective when I start Excel (personal.xls), part of the tool bar creation macro.
    What can I do when I close and or open other workbooks to make the toolbar visible or invisible?

  5. #5
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Hide unhide custom toolbar (title change)

    You have two options I can think of:
    1. Declare an Application variable WithEvents and use that to trap the opening and closing of other workbooks.
    2. Use built-in menu items on your toolbar that already behave the way you want, and hook their click events to run your code. That way, the disabling and enabling is done for you.

  6. #6
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,163

    Re: Hide unhide custom toolbar (title change)

    Option 1, What? LOL
    Option 2, I think I can do that.
    Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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