ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do you make a userform open automatically when you open excel? (https://www.excelbanter.com/excel-worksheet-functions/258601-how-do-you-make-userform-open-automatically-when-you-open-excel.html)

evan

How do you make a userform open automatically when you open excel?
 
I created a Userform in VBA, and want it to automatically appear upon opening
the Excel file everytime. How do I do that?

John[_22_]

How do you make a userform open automatically when you open excel?
 
Hi Evan
Paste this in "ThisWorkbook" module.
Private Sub Workbook_Open()
userform1.Show
End Sub
HTH
John
"Evan" wrote in message
...
I created a Userform in VBA, and want it to automatically appear upon opening
the Excel file everytime. How do I do that?




All times are GMT +1. The time now is 01:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com