PC Review


Reply
Thread Tools Rate Thread

Display Calculated amount in a textbox on userform

 
 
sam
Guest
Posts: n/a
 
      5th Oct 2009
Hi All, I have two dropdowns on userform, where users can select values
between 1-100, I want to display the difference between the two values
selected in a seperate textbox.

How can I do this?

Thanks in advance
 
Reply With Quote
 
 
 
 
Sam Wilson
Guest
Posts: n/a
 
      5th Oct 2009
Right click one of the dropdowns & "View code" - create a change event with
the following code:

me.txt_YourTextbox.value = me.cmb_Drop1.value - me.cmb_Drop2.value

and then repeat for the other drop down.

Sam

"sam" wrote:

> Hi All, I have two dropdowns on userform, where users can select values
> between 1-100, I want to display the difference between the two values
> selected in a seperate textbox.
>
> How can I do this?
>
> Thanks in advance

 
Reply With Quote
 
sam
Guest
Posts: n/a
 
      5th Oct 2009
Thank you sam, It was this simple and I was trying to complicate it with a
For look

"Sam Wilson" wrote:

> Right click one of the dropdowns & "View code" - create a change event with
> the following code:
>
> me.txt_YourTextbox.value = me.cmb_Drop1.value - me.cmb_Drop2.value
>
> and then repeat for the other drop down.
>
> Sam
>
> "sam" wrote:
>
> > Hi All, I have two dropdowns on userform, where users can select values
> > between 1-100, I want to display the difference between the two values
> > selected in a seperate textbox.
> >
> > How can I do this?
> >
> > Thanks in advance

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
display $ in a userform textbox sam Microsoft Excel Programming 2 17th Jul 2009 03:35 PM
fill userform textbox from userform listbox clik event GregJG Microsoft Excel Programming 1 7th Dec 2008 02:05 PM
How to feed a userform a variable to display in a textbox? Chet Microsoft Excel Programming 2 1st Feb 2008 02:46 PM
How do I get a calculated amount to round to the nearest nickel? =?Utf-8?B?UmFpbmE=?= Microsoft Excel Worksheet Functions 3 24th Jul 2007 07:28 AM
Qn: Display Text in TextBox in Userform Michael Vaughan Microsoft Excel Programming 1 18th Aug 2004 05:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:08 PM.