title: Option button_click to return text if true
body: <p>Me again, </p>
  
  <p>In my userform I just added 2 optionbutton click (1 and 2). 
  What I need is when you choose one of those buttons to get text in cell ( Option button 1 text I need in cell is Daily check and optionbutton 2 is weekly check). </p>
  
  <p>I tried with this code but it gives me only false or true as return information. </p>
  
  <pre><code>Private Sub OptionButton1_Click()
  If OptionButton1.value = True Then
      Range("I2").value = "MONTHLY CHECK"
      Else
      Range("I2").value = "OPERATIONAL DAY"
      End If End sub
  </code></pre>
  
  <p>Then after choosing option button this I have Commmand button that would enter this data (daily check or weekly check) into cells in column I, every entry new row which works but as I said only with true or false information</p>
  
  <pre><code>Private Sub CommandButton2_Click()
  Dim sh As Worksheet, lastRow As Long
    Set sh = Sheets("Test")
    lastRow = sh.Range("A" &amp; Rows.Count).End(xlUp).row + 1
      sh.Range("I" &amp; lastRow).value = OptionButton1.value
      sh.Range("I" &amp; lastRow).value = OptionButton2.value
  Unload Me
  End Sub
  </code></pre>
  
  <p>Thanks in advance on your help, as always.</p>