+ Reply to Thread
Results 1 to 5 of 5

VBA to run based on two optionbutton selection

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    715

    VBA to run based on two optionbutton selection

    Hello,

    I have below two code which runs when option button is selected. What I want it to VBA to run when both the option button is selected.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

    I need to merge these two different code to one, and VBA to run only when both option button is selected.

    Thanks
    Keep the Forum clean :


    1. Use [ code ] code tags [ /code ]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. Show appreciation to those who have helped you by clicking * Add Reputation below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: VBA to run based on two optionbutton selection

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    715

    Re: VBA to run based on two optionbutton selection

    sorry for not being clear. I want code something in below lines.

    Please Login or Register  to view this content.
    And if user select only Optionbutton7 and try to run the vba, he should get a message that "Please select Reward option"

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: VBA to run based on two optionbutton selection

    Hi, shiva_reshs,

    your request is clear as mud as is as well as theses buttons are on a UserForm or in a worksheet...

    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  5. #5
    Forum Contributor
    Join Date
    07-17-2012
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    715

    Re: VBA to run based on two optionbutton selection

    It is in the userform.

+ 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. Replies: 2
    Last Post: 10-07-2013, 11:06 AM
  2. [SOLVED] Show button based on OptionButton being selected
    By niltiac88 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-17-2013, 12:56 PM
  3. [SOLVED] Check for OptionButton selection
    By Nu2Java in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-30-2012, 05:15 PM
  4. Multiple selection criteria, which formula? .. and selection based on unique numbers
    By FalkirkJim in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2012, 05:22 PM
  5. A value based on OptionButton selection
    By Sony in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2006, 03:20 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