Evening All,
Could someone help me understand what I am doing wrong please.
I am trying to create a user form (my first one)
When I use userform_initialize it works the very first time I run the script. I then close the form to make some changes and next time I run the same script I get ' Run-time error '424' Object Required.
The form is called ScannerInput, so I changed my code to ScannerInput_Initialized but then my preset inputs dont appear. Code below.
Thanks,
Could someone help me understand what I am doing wrong please.
I am trying to create a user form (my first one)
When I use userform_initialize it works the very first time I run the script. I then close the form to make some changes and next time I run the same script I get ' Run-time error '424' Object Required.
The form is called ScannerInput, so I changed my code to ScannerInput_Initialized but then my preset inputs dont appear. Code below.
Thanks,
Code:
Private Sub UserForm_Initialize()
With DepartmentListBox
.AddItem "Goods In"
.AddItem "Machine Shop"
.AddItem "Quality In"
.AddItem "Quality Out"
.AddItem "Goods Out"
End With
NameTextBox.Value = "UserName"
DateTextBox.Value = "Use TODAY()"
TimeTextBox.Value = "Use NOW()"
BarcodeTextBox.Value = "Scan Barcode"
End Sub