Create Userform from Module

Copper Contributor

I'm looking for a way to create a UserForm that will be generated when a VBA Module is ran instead of having to load the UserForm itself. I already have the code written for the command button "Enter" but am having trouble finding articles online on how to create the code for creating the form. Thanks for any help you guys can provide!

1 Reply

@bwlleonard 

In general, it's much easier to create a bare-bones userform interactively in the Visual Basic Editor, then customize it in code. But if you really want to create it from scratch in your code, see Create UserForm programmatically in the module using VBA