+ Reply to Thread
Results 1 to 4 of 4

Reset and Rename All toggle buttons on Sheet

  1. #1
    Registered User
    Join Date
    11-25-2017
    Location
    Leeds
    MS-Off Ver
    365
    Posts
    16

    Reset and Rename All toggle buttons on Sheet

    Hi All,

    I have created 50 toggle buttons on a worksheet. The default caption is "Yes / No", but I have created some crude code that sets the caption and colour when pressed / depressed... i.e Pressed = White and Caption "Yes" / Depressed = Grey and Caption "No"

    Im looking to create a reset and rename button for them back to depressed / Grey and caption "Yes / No".


    Kind Regards

  2. #2
    Registered User
    Join Date
    09-12-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2013
    Posts
    38

    Re: Reset and Rename All toggle buttons on Sheet

    Hi VonBlack

    if you want it to work in the current sheet. this will set all toggle buttons to open, switch value to true if desired. Set caption to what you want them to say.
    Put this code in the sheet code section
    Please Login or Register  to view this content.
    if you have multiple sheets and want to reset all put this in a workbook level module.
    Please Login or Register  to view this content.
    Trigger either from a command button on the sheet or running macro any other way you want.

  3. #3
    Registered User
    Join Date
    11-25-2017
    Location
    Leeds
    MS-Off Ver
    365
    Posts
    16

    Re: Reset and Rename All toggle buttons on Sheet

    Absolute brilliant Ron. Cant thank you enough.

  4. #4
    Registered User
    Join Date
    09-12-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2013
    Posts
    38

    Re: Reset and Rename All toggle buttons on Sheet

    you're welcome
    took a bit of hunting to find the typename property of the button.

+ 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] how do i make a toggle button change other toggle buttons value to false
    By kevinu in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-10-2018, 04:19 PM
  2. [SOLVED] Reset CustomUI Toggle Button state by cancelling Input Prompt
    By KiwiRickToo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-12-2016, 07:35 AM
  3. [SOLVED] Reset All Toggle Buttons
    By Ash_ in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-07-2014, 09:29 AM
  4. Rename Toggle Buttons
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2010, 02:32 PM
  5. NEW to VB - Using Toggle buttons to change cell data on another sheet
    By Imajika in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2010, 01:19 PM
  6. Toggle Buttons
    By Momo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2005, 10:06 AM
  7. How do I use Toggle Buttons?
    By fuzzyfreak in forum Excel General
    Replies: 0
    Last Post: 01-21-2005, 01:10 PM

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