Hi,
I want to know if its possible for the TextBox3 to automatically SUM the TextBox1 and TextBox2, without having to go on it and press 0.
Here is the sample:
UserformTest.xlsm
Help anyone?
Thanks.
Hi,
I want to know if its possible for the TextBox3 to automatically SUM the TextBox1 and TextBox2, without having to go on it and press 0.
Here is the sample:
UserformTest.xlsm
Help anyone?
Thanks.
Hi, calvinle,
maybe just like this:
Maybe IŽd go with the Exit-Event instaed of the Change.Private Sub TextBox1_Change() TextBox3 = Val(TextBox1) + Val(TextBox2) End Sub Private Sub TextBox2_Change() TextBox3 = Val(TextBox1) + Val(TextBox2) End Sub
Ciao,
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
Genius! But what should be the code for the Exit Event?
Thanks.
Hi, calvinle,
You could close Textbox3 in order to avoid the user to click into the control.Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean) TextBox3 = Val(TextBox1) + Val(TextBox2) End Sub Private Sub TextBox2_Exit(ByVal Cancel As MSForms.ReturnBoolean) TextBox3 = Val(TextBox1) + Val(TextBox2) End Sub
Ciao,
Holger
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks