Consulting

Results 1 to 2 of 2

Thread: Option choices - how do I export results?

  1. #1
    VBAX Mentor Sir Babydum GBE's Avatar
    Joined
    Mar 2005
    Location
    Cardiff, UK
    Posts
    499
    Location

    Option choices - how do I export results?

    Hi

    On my userform I have some option buttons, the user selects them to say "yes", "no", or "n/a" - but I want the result to go to one cell when the user submits the record.

    I also have a similar situation has two comboboxes to select from. the input from one cancels the other out - so again, how to I get the result in one cell - say A1 for the sake of argument.

    Thanks
    Have a profound problem? Need a ridiculous solution? Post a question in Babydum's forum

  2. #2
    VBAX Mentor Sir Babydum GBE's Avatar
    Joined
    Mar 2005
    Location
    Cardiff, UK
    Posts
    499
    Location
    Quote Originally Posted by Me
    Hi, ...how to I get the result in one cell - say A1 for the sake of argument.
    No worries - got it.


    [vba]If opt1 = True Then
    ActiveCell.Value = "yes"
    ElseIf opt2 = True Then
    ActiveCell.Value = "no"
    Else
    ActiveCell.Value = "n/a"
    End If[/vba]

    I'm learning...
    Have a profound problem? Need a ridiculous solution? Post a question in Babydum's forum

Posting Permissions

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