+ Reply to Thread
Results 1 to 2 of 2

vba for Option button to select

  1. #1
    Forum Contributor
    Join Date
    11-17-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    365

    vba for Option button to select

    I Have A userform Name "Product_Name"

    There I have three option (In Option Button)
    1. GPA, 2. GMC and 3. GTL

    Also at down there are

    two Button "Next" and "Back"

    I want a code to select any one of the above 3 product before clicking on next. If anyone clicking on next without selecting it should show error "Please select your product). Without selecting it should not go to next level

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: vba for Option button to select

    Put your option buttons in a frame, so that only one can be selected at a time.

    Then your 'Next' button code might look something like:
    Please Login or Register  to view this content.
    Example file attached.
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

+ 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] userform to select option button without running the code that's in it
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 04-22-2015, 04:09 PM
  2. Replies: 2
    Last Post: 08-15-2013, 12:25 PM
  3. Replies: 0
    Last Post: 04-17-2013, 10:31 AM
  4. Select active X option button and drop down in a another excel file using macro
    By vishal_dhami in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2012, 07:20 AM
  5. 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
  6. Replies: 0
    Last Post: 02-20-2006, 06:00 PM
  7. [SOLVED] Select option button when have the name as a string
    By Debbie Probert via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-18-2005, 01: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