Issue passing values between userforms

devj364

New Member
Joined
Apr 30, 2018
Messages
4
Ok, soo... i am having trouble passing the values from combobox and textbox from userform1 to userform3

i have made Cust, PrtNmb and WrkNmb private objects

Sub CommandButton1_Click()
Range("a1").Select




With ActiveSheet
.Range("A1").End(xlDown).Activate 'moves to end of data
activecell.Offset(1, 0).Select 'selects the first non filled cell
End With


activecell.Value = Format(Now(), "mm-dd.yy") 'Fills date
activecell.Offset(0, 1).Select
activecell.Value = Cust 'fills cell with Customer Code
activecell.Offset(0, 1).Select
activecell.Value = PrtNmb 'fills cell with Part Number
activecell.Offset(0, 1).Select
activecell.Value = WrkNmb 'fills cell with Work Order Numnber
activecell.Offset(0, 1).Select
activecell.Value = OpEr 'fills cell with Operation
activecell.Offset(0, 1).Select
activecell.Value = DateTime.Time() 'fills cell with start time
activecell.Offset(0, 2).Select
activecell.Value = Qty
activecell.Offset(0, -7).Select 'returns to first cell


If CheckBox1 = True Then
Hide
UserForm2.Show
End If


Hide
UserForm3.Show


End Sub
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,215,417
Messages
6,124,777
Members
449,187
Latest member
hermansoa

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top