+ Reply to Thread
Results 1 to 3 of 3

[SOLVED] userform option button

  1. #1
    Forum Contributor
    Join Date
    04-05-2013
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    360

    [SOLVED] userform option button

    I'm using the code below on an option button in a userform. The way it should is the following:


    userform opens - data will be entered into text boxes....all option buttons a defaulted to "NO".

    all option buttons return a value of "1" if "YES" or "0" if "NO"

    a command button will enter all data entered into a table

    the problem i have is that if the user does not select any of the option buttons (because they want them to be "NO" as they are defaulted to) the option button will not return any value. The user would have to toggle the yes/no button in order for it to return a no.

    attached is a sample...although it's not working at all in the sample but i hope it clarifies the problem.
    Attached Files Attached Files
    Last edited by adamheon; 08-26-2016 at 09:28 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,624

    Re: userform option button

    Please Login or Register  to view this content.
    Change UpdateRow to LRow
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    04-05-2013
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    360

    Re: userform option button

    That was too simple! Thank you very much!

+ 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. userform default option button
    By adamheon in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-16-2016, 02:32 PM
  2. [SOLVED] How to bind a specific Userform per Option button?
    By paradoxofthecat in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-02-2014, 03:20 AM
  3. UserForm Option Button Help...
    By z-eighty2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2013, 10:17 PM
  4. Userform option button help
    By mecharissa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-01-2012, 04:48 AM
  5. [SOLVED] Changing the Caption of an Option button in a userform using vba
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2012, 12:11 PM
  6. USerform: add button pasting option values
    By Sibrulotte in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-03-2011, 08:15 AM
  7. Userform Option Button to Show/Hide Another Option Button on same Userform
    By R_S_6 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2010, 09:44 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