i have a user form in my spreadsheet that uses option buttons and text boxes for user entry. i need to take the values and true false entries from the option buttons and place them in cells. i am alittle lost with this. please help - ! thanks for your time
Return Yes/No to Cell Based On Option Button
-
-
-
Re: Insert Data From Form Into Spreadsheet
Quotei need to take the values and true false entries from the option buttons and place them in cells.
Could you be a little more specific? Which cells?
Is this a userform that you created?
-
Re: Insert Data From Form Into Spreadsheet
please see attached spreadsheet, my previous post only made sense in my head. thanks for the help
-
Re: Insert Data From Form Into Spreadsheet
Is this what you need?
-
Re: Insert Data From Form Into Spreadsheet
"i have a user form in my spreadsheet that uses option buttons and text boxes for user entry. i need to take the values and true false entries from the option buttons and place them in cells."
This should get you started.
Code
Display Moresub DoStuff() dim row dim col row = 1 'these can be any value. col = 1 'for checkboxes, the .value property is true or false. if formname.checkboxname.value then 'check if it's true cells(row,col) = "Yes" 'true, so put yes in the cell on the active worksheet. else cells(row,col) = "No" 'false, so put no in the cell. endif end sub
-
Re: Insert Data From Form Into Spreadsheet
sweet worked great - this forum is awesome - have a great one - - -thanks again
-
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!