Display Calculated amount in a textbox on userform

S

sam

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
 
S

Sam Wilson

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
 
S

sam

Thank you sam, It was this simple and I was trying to complicate it with a
For look :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top