Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
gem
 
Posts: n/a
Default HELP WITH USERFORMS NEEDED!!!

i have a user form for a carpet company and need to know how to work out the
total cost. i have a text box with the price per square metre and a text box
which allows the user to type in the amount of square metres required. what i
want is once this has been typed in, i want the total cost to be
automatically calculated by multiplying the price per square metre with the
number of sqaure metres!!! what formula do i use? can anyone help?
thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
William
 
Posts: n/a
Default HELP WITH USERFORMS NEEDED!!!

Hi Gem

Try the following (although you'll need some error checking to ensure there
are valid numbers in TaxtBox1 and TextBox2).


Private Sub TextBox1_Change()
TextBox3 = Val(TextBox1) * Val(TextBox2)
End Sub


Private Sub TextBox2_Change()
TextBox3 = Val(TextBox1) * Val(TextBox2)
End Sub


--

Regards

William

XL2003




"gem" wrote in message
...
i have a user form for a carpet company and need to know how to work out
the
total cost. i have a text box with the price per square metre and a text
box
which allows the user to type in the amount of square metres required.
what i
want is once this has been typed in, i want the total cost to be
automatically calculated by multiplying the price per square metre with
the
number of sqaure metres!!! what formula do i use? can anyone help?
thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
gem
 
Posts: n/a
Default HELP WITH USERFORMS NEEDED!!!

hi william
thanks but it didnt work!
the price per square metre is in textbox 14
the number of sqaure metres is in textbox 9
and the total cost should show in text box 15
perhaps you could try help me with code using them text boxes so its easy to
understand!
thanks

"William" wrote:

Hi Gem

Try the following (although you'll need some error checking to ensure there
are valid numbers in TaxtBox1 and TextBox2).


Private Sub TextBox1_Change()
TextBox3 = Val(TextBox1) * Val(TextBox2)
End Sub


Private Sub TextBox2_Change()
TextBox3 = Val(TextBox1) * Val(TextBox2)
End Sub


--

Regards

William

XL2003




"gem" wrote in message
...
i have a user form for a carpet company and need to know how to work out
the
total cost. i have a text box with the price per square metre and a text
box
which allows the user to type in the amount of square metres required.
what i
want is once this has been typed in, i want the total cost to be
automatically calculated by multiplying the price per square metre with
the
number of sqaure metres!!! what formula do i use? can anyone help?
thanks




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
Sports Comp Ladder tabulating help needed shaunl Excel Worksheet Functions 12 January 29th 14 01:25 PM
Help needed! DBsWifeLB Excel Worksheet Functions 3 March 14th 06 08:23 PM
"In Today's Dollars" help needed... Rick B Excel Worksheet Functions 4 January 12th 06 04:08 PM
IF / Else Format help needed Paul B. Excel Worksheet Functions 5 January 5th 06 06:37 PM
formula results take up to 2 lines if needed, but keep border smurf Excel Worksheet Functions 0 August 17th 05 08:55 PM


All times are GMT +1. The time now is 07:23 PM.

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

About Us

"It's about Microsoft Excel"