Forum Discussion
bwlleonard
Jul 20, 2024Copper Contributor
Create Userform from Module
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...
HansVogelaar
Jul 20, 2024MVP
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