on-internet
← Community

How to open and run a userform?

Stack Overflow ·

I have a userform on an Excel file called "userform": Private Sub add1_Change() End Sub Private Sub add2_Change() End Sub Private Sub Calc_Click() Result.Value = Val(add1.Value) + Val(add2.Value) End Sub This userform takes the value from the user and adds them together and shows the result in a textbox. I want to create a new macro in another workbook named "input". The macro in this workbook should open the userform workbook, enter values in the textbox add1 and add2, then run the userform calculate button. What I've tried thus far: Set add1.value to extract a value from say, cell A1, and si

Comments

Sign in or sign up to comment and upvote.

No comments yet.