Consulting

Results 1 to 4 of 4

Thread: Option Button Value

  1. #1

    Option Button Value

    I have 2 option buttons caption as Yes,No.
    They are under a frame called Incomplete Troubleshooting.
    At the end is a command button to save it to worksheet.
    I have made Option Button "No" as True by default.
    I want to get result in my sheet as Yes/No
    Example
    If user clicks on OButton Yes, and clicks on Save, I should get Yes in my sheet.

  2. #2
    If these are option buttons on a worksheet then you can simply tie them to a cell directly.
    Regards,

    Jan Karel Pieterse
    Excel MVP jkp-ads.com

  3. #3
    These are on userform

  4. #4
    Simple enough:
    If OptionButton1.Value Then
        Worksheets("Sheet1").Range("A1").Value = "Yes"
    Else
        Worksheets("Sheet1").Range("A1").Value = "No"
    End If
    Regards,

    Jan Karel Pieterse
    Excel MVP jkp-ads.com

Posting Permissions

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