![]() |
Display Calculated amount in a textbox on userform
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 |
Display Calculated amount in a textbox on userform
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 |
Display Calculated amount in a textbox on userform
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 |
All times are GMT +1. The time now is 12:37 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com