first off, for the question existing customer i would use a checkbox which defaults as yes or no, then say your check box is named extcustchk and your form is called survey then you would reference that box by survey.extcustchk.value
to get it to input a value to your spreadsheet for calculus then you would use
if survey.extcustchk.value = true then
range("A" & NextArow).value = 1
else:
range("A" & NextArow).value = 0
end sub
where NextArow is a variable based off of NextArow= CStr(Range("A" & CStr(Application.Rows.Count)).End(xlUp).Row) + 1
the option buttons work the same way they have a name and are contained within the form survey.optionbuttonname.value
but if you want the value to be in a single cell in your data set you should do something like
if survey.optionbuttonname.value = true then n = 1
if survey.optionbuttonname2.value = true then n = 2
if survey.optionbuttonname3.value = true then n = 3
where = 1 is the same as saying true meaning it is selected
then the next line would be
range("A" & NextArow).offset(,1).value = n
hope that makes sense
example for option button.xlsm
Bookmarks