+ Reply to Thread
Results 1 to 5 of 5

Toggle Button

  1. #1
    Registered User
    Join Date
    08-14-2012
    Location
    Budapest
    MS-Off Ver
    Excel 07 / 10 / 13
    Posts
    49

    Toggle Button

    How can i get the following code to only allow one toggle button to output true. Ie, i click ToggleButton1 and 2,3 go false. When Togglebutton2 is pressed, 1,3 go false. Currently the code just runs through the hole script. This is in the worksheet, not a userform

    Thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Toggle Button

    Maybe using "Option Buttons " would be more suitable, They only allow one button to be "True"

  3. #3
    Registered User
    Join Date
    08-14-2012
    Location
    Budapest
    MS-Off Ver
    Excel 07 / 10 / 13
    Posts
    49

    Re: Toggle Button

    Option buttons are just to small...

  4. #4
    Registered User
    Join Date
    08-14-2012
    Location
    Budapest
    MS-Off Ver
    Excel 07 / 10 / 13
    Posts
    49

    Re: Toggle Button

    I found the following to work correctly,

    Each button calls the following:

    Please Login or Register  to view this content.






    Please Login or Register  to view this content.



    to reset the buttons:

    Please Login or Register  to view this content.

  5. #5
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Toggle Button

    I don't think you can do it with "ToggleButtons" because each time you set a button to False/True you activate the click event on the next "ToggleButton", as the "Click" event Runs the the code.
    You could, however do it with "CommandButtons" and change the Caption to "False/True" and the Color to "Red/Green"

+ 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. [SOLVED] Toggle Button & getting the postion of the just pressed button
    By NugentS in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2012, 11:58 AM
  2. Need help using a toggle button
    By tanktata in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-28-2006, 03:01 PM
  3. [SOLVED] Toggle Button
    By NavEx in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-22-2006, 09:45 PM
  4. Toggle Button
    By Dave_2k5 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2005, 06:05 AM
  5. Adding .xla button for Toggle Calculation Button
    By Mike in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-19-2005, 09:05 AM

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