Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    May 2004
    Location
    Toronto, Ontario, Canada
    Posts
    425
    Thanks
    5
    Thanked 0 Times in 0 Posts

    optionbutton select case (2000)

    Hi all,

    I have 3 optionbuttons on a form, in a frame, I want the user to respond to one of the three buttons. When true it inputs a bunch of numbers into cells on a certain sheet, but if all 3 buttons are false, then I want it to abort the inputting based on the non selection, what do I need to do here? Create a loop?

    Thank you all.

    Darryl.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: optionbutton select case (2000)

    You could use code like this:

    Select Case True
    Case Me.OptionButton1
    ' code to execute if 1st button is selected goes here
    Case Me.OptionButton2
    ' code to execute if 2nd button is selected goes here
    Case Me.OptionButton3
    ' code to execute if 3rd button is selected goes here
    Case Else
    ' code to execute if no button is selected goes here
    End Select

  3. #3
    4 Star Lounger
    Join Date
    May 2004
    Location
    Toronto, Ontario, Canada
    Posts
    425
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Re: optionbutton select case (2000)

    Thank you Hans!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •