i have two userforms - Userform1 has few textbox, combobox and check box and has a command submit button where it unloads userform1 and shows the userform2 Userform2 has other set of textbox and combobox and a submit button.
I want the userform2 submit button to update all the data from userform1 and userform2 to my work sheet at once (rather updating the userform1 data first to sheet and than moving to userform2 and updating its data)
Private Sub cmdsubmitdata_Click()
Application.ScreenUpdating = False
Windows("EMPDATA.xlsm").Activate
Sheets("EMP").Select
Range("B2").Select
Selection.End(xlDown).Select
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = NewJoinerEntry.Txtfirstname.Text
Range("B2").Select
Selection.End(xlDown).Select
ActiveCell.Offset(0, 4).Select
ActiveCell.FormulaR1C1 = ComboGender.Text
Range("B2").Select
Selection.End(xlDown).Select
ActiveCell.Offset(0, 14).Select
ActiveCell.FormulaR1C1 = ComboWageType.Text
On this button click it updates the values of ComboGender & ComboWageType on my sheet but doesnot update the Txtfirstname which is on my userform1.