Hi everyone!
I'm very new to coding using VBA so this may be an easy solve.
I'm trying to make a userform, and have just made a textbox value empty and added items to comboboxes. This code is in the userform itself:
-----------------------------------
The user form is called RecordEntryForm, and in my Sheet1 code, I have:
-----------------------------------
When I try to run this, I get 'Compile Error: Expected Function or Variable' and it highlights the 'Private Sub UserForm_Initialize()' line.
I've tried replacing UserForm with name of the actual form -> Private Sub RecordEntryForm_Initialize() - the error goes away but the form values are empty, there are no options for the comboboxes.
Please advise on what to do here. I have nothing in the 'Modules'.
-shasabhi1
Bookmarks