Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want to split a transaction using a userform. The user enters the total
amount in a textbox control and then splits the amount into several components in other textbox controls. A further textbox control then calculates that the sum of the splits equals the original total amount. The results are posted to the original spreadsheet using VBE. Can I do this with textbox controls in a userform? If so how do I construct the formulas? Can I format the control for finance? I know I can do it with a spreadsheet control in the form, but I am having memory trouble and every time I use the command button to show the control there is a warning about security. Regards |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have this one compiled:
Private Sub TextBox1_Change() If IsNumeric(TextBox1) Then TextBox2 = TextBox1 * 0.1 Else TextBox2 = "" End If End Sub 'Add TextBox1 and TextBox2 in a userform for test. ' then paste code above behind userform. -- Regards, Halim "pkeegs" wrote: I want to split a transaction using a userform. The user enters the total amount in a textbox control and then splits the amount into several components in other textbox controls. A further textbox control then calculates that the sum of the splits equals the original total amount. The results are posted to the original spreadsheet using VBE. Can I do this with textbox controls in a userform? If so how do I construct the formulas? Can I format the control for finance? I know I can do it with a spreadsheet control in the form, but I am having memory trouble and every time I use the command button to show the control there is a warning about security. Regards |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Userform TextBox | Excel Programming | |||
userform textbox | Excel Worksheet Functions | |||
Textbox in userform | Excel Programming | |||
Textbox in userform | Excel Programming | |||
UserForm TextBox to ActiveSheet TextBox over 256 characters | Excel Programming |