Good morning
i have a form with 3 option buttons
Yes
No
Sick/Hol
i can code the yes no using:
Please Login or Register to view this content.
Good morning
i have a form with 3 option buttons
Yes
No
Sick/Hol
i can code the yes no using:
Please Login or Register to view this content.
You need an ElseIf there to check option 2 with the Else to catch Option 3
So like this
IF Opt_OP1 = True Then
Sheets("Data").Range("Data_Start").Offset(1, 3).Value = "Yes"
ElseIf Opt_OP2 = True then
Sheets("Data").Range("Data_Start").Offset(1, 3).Value = "No"
Else
Sheets("Data").Range("Data_Start").Offset(1, 3).Value = "Sick/Hol"
End If
Sorry for brief initial answer, was on a phone.
The only change I would make to the code you posted would be to not rely on default values but explicitly reference the property you want
There is nothing wrong with the syntax of your code as long as the controls OPT_Op1, OPT_Op2 and another exist. Post a sample of your workbook. it's probably something simple...Please Login or Register to view this content.
Last edited by cytop; 06-17-2017 at 06:08 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks