i have written the following code within the userform1 module, the code is to display 3 options using an option list and then display the data into the spreadsheet, however the data doesnt get displayed onto the sheet, some insight into this problem will be highly appreciated thank you very much!!
code Private Sub CommandButton1_Click()
Unload UserForm1
End Sub
Private Sub Frame1_Click()
Dim thechoice As String
'
If Me.OptionButton1 Then
thechoice = "1"
ElseIf Me.OptionButton2 Then
thechoice = "2"
ElseIf Me.OptionButton3 Then
thechoice = "3"
Else
thechoice = "4"
End If
ActiveCell.Offset(0, 2).Value = thechoice
End Sub /code
Bookmarks