Forum Discussion
VBA: Input Box vs User Form Capabilities
- Jan 20, 2025
Since users have to enter multiple items for each new or leaving user, I'd use a userform with text boxes to enter the information and command buttons to save the current information and to start over.
Since users have to enter multiple items for each new or leaving user, I'd use a userform with text boxes to enter the information and command buttons to save the current information and to start over.
- JoeCavasinJan 20, 2025Brass Contributor
Great, thanks again as always!
Started building a user form, and just curious if user forms allow logic or triggers (for lack of a better word) which presents them on opening the workbook, so users are directed there first by default?
- HansVogelaarJan 20, 2025MVP
Yes:
In the Visual Basic Editor, in the Project Explorer pane on the left hand side, double-click ThisWorkbook under Microsoft Excel Objects.
Copy the following code into the ThisWorkbook module, and if necessary, replace UserForm1 with the real name of your userform.
Private Sub Workbook_Open() UserForm1.Show End Sub