Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 182
Default Formula in userform textbox

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Userform TextBox LaDdIe Excel Programming 4 August 11th 07 08:32 AM
userform textbox Phil Excel Worksheet Functions 5 January 16th 05 06:59 PM
Textbox in userform Harald Staff Excel Programming 0 September 8th 04 11:51 AM
Textbox in userform shaharul[_6_] Excel Programming 3 April 15th 04 12:54 PM
UserForm TextBox to ActiveSheet TextBox over 256 characters Dan E[_2_] Excel Programming 1 July 28th 03 07:36 PM


All times are GMT +1. The time now is 09:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"