Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Displaying the result of a formula in a text box


I have a user form with combo and text boxes.

Based on the values in three of the boxes I need the result of a
formula to be displayed in a read only text box. The values selected in
the 2 combo boxes determines which formula is used and the value in the
text box is used in the formula

E.g

Combobox1 = 1111111
Combobox2 = Monthly
Textbox1 = 27.35

Formulas

1111111 & Monthly = (Textbox1/1.05)/1.08)*0.3)*12)
2222222 & Monthly = (Textbox1/1.05)/1.08)*0.25)*12)
3333333 & Annual = (Textbox1/1.05)/1.08)*0.3)

Result

Testbox 2 = 86.83

Can anyone help me with this please as I'm not sure where to start

Thanks

Jules


--
julesl
------------------------------------------------------------------------
julesl's Profile: http://www.excelforum.com/member.php...o&userid=25180
View this thread: http://www.excelforum.com/showthread...hreadid=386711

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Displaying the result of a formula in a text box


If Combobox2.Value = "Monthly" Then
If Combobox1.Value = "1111111" Then
Textbox1.Text = CDbl(Textbox1.Text) / 1.05 / 1.08 * 0.3 * 12
ElseIf Combobox1.Value = "222222" Then
Textbox1.Text = CDbl(Textbox1.Text) / 1.05 / 1.08 * 0.25 * 12
End If
ElseIf Combobox2.Value = "Annual" And _
Combobox1.Value = "333333" Then
Textbox1.Text = CDbl(Textbox1.Text) / 1.05 / 1.08 * 0.3
End If

--
HTH

Bob Phillips

"julesl" wrote in
message ...

I have a user form with combo and text boxes.

Based on the values in three of the boxes I need the result of a
formula to be displayed in a read only text box. The values selected in
the 2 combo boxes determines which formula is used and the value in the
text box is used in the formula

E.g

Combobox1 = 1111111
Combobox2 = Monthly
Textbox1 = 27.35

Formulas

1111111 & Monthly = (Textbox1/1.05)/1.08)*0.3)*12)
2222222 & Monthly = (Textbox1/1.05)/1.08)*0.25)*12)
3333333 & Annual = (Textbox1/1.05)/1.08)*0.3)

Result

Testbox 2 = 86.83

Can anyone help me with this please as I'm not sure where to start

Thanks

Jules


--
julesl
------------------------------------------------------------------------
julesl's Profile:

http://www.excelforum.com/member.php...o&userid=25180
View this thread: http://www.excelforum.com/showthread...hreadid=386711



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
Displaying 'IF' Function result (text) over cells containing formu MML Excel Worksheet Functions 1 June 21st 07 09:17 AM
formula result is not displaying olga Excel Discussion (Misc queries) 4 January 10th 07 01:08 AM
result of formula not displaying Stupid Word User Excel Worksheet Functions 4 October 21st 05 01:41 AM
formula is displaying as text rather than result. Jamie Excel Worksheet Functions 2 December 13th 04 05:33 PM
displaying formula result kalz Excel Worksheet Functions 4 November 17th 04 08:23 AM


All times are GMT +1. The time now is 07:24 AM.

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"