TimvanSprang
New Member
- Joined
- Feb 23, 2014
- Messages
- 10
I think the solution is rather simple, I just can't find it.
I have textboxes 102, 103, 104, 105, 106
I want the values in 103-106 to be autofilled based on values in 102. I wrote the following code.
Private Sub TextBox102_change()
TextBox103.Value = TextBox102.Value * 3.125
TextBox104.Value = TextBox103.Value * 2
TextBox105.Value = TextBox102.Value * 0.2
TextBox106.Value = TextBox104.Value * 2
This works perfectly untill I use backspace in textbox102. as soon as the value in textbox 102 is removed an error occurs.
error 13
type doesn't mach (or something like that, I had to translate from dutch)
Can someone help me fix this problem?
Thanks a lot
I have textboxes 102, 103, 104, 105, 106
I want the values in 103-106 to be autofilled based on values in 102. I wrote the following code.
Private Sub TextBox102_change()
TextBox103.Value = TextBox102.Value * 3.125
TextBox104.Value = TextBox103.Value * 2
TextBox105.Value = TextBox102.Value * 0.2
TextBox106.Value = TextBox104.Value * 2
This works perfectly untill I use backspace in textbox102. as soon as the value in textbox 102 is removed an error occurs.
error 13
type doesn't mach (or something like that, I had to translate from dutch)
Can someone help me fix this problem?
Thanks a lot