+ Reply to Thread
Results 1 to 4 of 4

Userform option buttons set to false

  1. #1
    Forum Contributor
    Join Date
    10-06-2015
    Location
    Leeds, England
    MS-Off Ver
    365 Version 2302 Build 16.0.16130.20942
    Posts
    130

    Userform option buttons set to false

    I have a userform with some option buttons, when the userform opens I would like all of the option button values set to false. If I run the code as normal then it always remembers my previous selection. But if I use step-in F8 on the code line by line then when the userform opens all of the values are set to false. Can anyone help with this?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,937

    Re: Userform option buttons set to false

    Hi, place the code you have in the post in a module named Userform_Activate
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Contributor
    Join Date
    10-06-2015
    Location
    Leeds, England
    MS-Off Ver
    365 Version 2302 Build 16.0.16130.20942
    Posts
    130

    Re: Userform option buttons set to false

    Quote Originally Posted by Keebellah View Post
    Hi, place the code you have in the post in a module named Userform_Activate
    Thank you, that's fixed the problem

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,952

    Re: Userform option buttons set to false

    In addition, if you have lots of OptionButtons you can clear them all by looping through rather than hardcoding them all.
    Please Login or Register  to view this content.
    BSB

+ 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. Multiple Option Buttons in Userform
    By cmonstuh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-19-2018, 07:48 AM
  2. [SOLVED] VBA Code for Option Buttons to return YES or NO instead of TRUE or FALSE
    By mebanet in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-31-2013, 02:42 AM
  3. [SOLVED] Option Box buttons in UserForm help
    By motolich in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-28-2013, 12:04 AM
  4. Option buttons return true/false rather than 1/2
    By ABSTRAKTUS in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-03-2011, 05:59 PM
  5. userform with frame and option buttons
    By erich_7719 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-25-2008, 11:57 AM
  6. Help with a option buttons located in a userform
    By mav93 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2006, 01:40 PM
  7. [SOLVED] option buttons' values = false
    By Spencer Hutton in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2005, 07:06 PM

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