PDA

View Full Version : Checkbox make values to textbox



lukinho91
05-09-2016, 02:29 PM
Hi everybody!

My problem: i made two checkboxes and i want to add value to a textbox. If checkbox1. value= true then textbox1. value would increase 10.
The order is not important ( which checkbox. value = true, is the first).


thx for help

PAB
05-09-2016, 02:35 PM
Hi lukinho91, welcome to the board :yes .

What about something along the lines of...


If Checkbox1.Value = TRUE Then Checkbox1.Value = + 10

Just a thought!

SamT
05-09-2016, 03:34 PM
Sub Add10()
If CheckBox1 Or Checkbox2 Then TextBox1= CStr(CLng(TextBox1) +10)
End Sub