Hi all I am really lossed on how to code a button on a small userform that will send the value in it to another userform
I have a main form called 'frmExpenses' part of this form is a textbox to record the total mileage. A user can either enter a number directly or thay can press a button called 'frmMileCalc' to enter the daily mileage to get a total.
'frmMileCalc' opens another form which allows a users to enter the daily mileage in various textboxes and totals it all in another textbox called 'txtTotalMileage'.
when the button 'buttonTransfer' is clicked I would like the total mileage value to transfer over to the orgonal form so that the user can carry on completing it and then writing all the values to the worksheet.
I've tried numerous methods to get this to work but no joy dispite many many searches on google ect.
Could someone please let me know firstly if this is achievable and if so how do I do it?
Many thanks
Paul
I have a main form called 'frmExpenses' part of this form is a textbox to record the total mileage. A user can either enter a number directly or thay can press a button called 'frmMileCalc' to enter the daily mileage to get a total.
'frmMileCalc' opens another form which allows a users to enter the daily mileage in various textboxes and totals it all in another textbox called 'txtTotalMileage'.
when the button 'buttonTransfer' is clicked I would like the total mileage value to transfer over to the orgonal form so that the user can carry on completing it and then writing all the values to the worksheet.
I've tried numerous methods to get this to work but no joy dispite many many searches on google ect.
Could someone please let me know firstly if this is achievable and if so how do I do it?
Many thanks
Paul