ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,731
- Office Version
- 2007
- Platform
- Windows
Morning.
I have a worksheet with Checkbox1 & CheckBox2
The user opens the userform & enters a value into TextBox1 etc
The user then uses the commandbutton code to send TextBox1`value to worksheet.
At the same time i would like CheckBox1 & Checkbox2 on the worksheet cleared / reset.
This is work in progress so please advise how the Checkboxes are cleared / Reset so i can then continue
Currently i get compile error variable not defined.
I have a worksheet with Checkbox1 & CheckBox2
The user opens the userform & enters a value into TextBox1 etc
The user then uses the commandbutton code to send TextBox1`value to worksheet.
At the same time i would like CheckBox1 & Checkbox2 on the worksheet cleared / reset.
This is work in progress so please advise how the Checkboxes are cleared / Reset so i can then continue
Currently i get compile error variable not defined.
VBA Code:
Private Sub SendToInvSheet_Click()
ThisWorkbook.Worksheets("BIKES").Range("A42") = Me.TextBox1.Text
ThisWorkbook.Worksheets("BIKES").Range("R57") = Me.ComboBox1.Text
Unload Me
With Sheets("BIKES")
CheckBox1 = False
CheckBox2 = False
End With
End Sub