ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   What code do I use to add a user form to Excel worksheet? (https://www.excelbanter.com/excel-programming/366810-what-code-do-i-use-add-user-form-excel-worksheet.html)

Hammer1947

What code do I use to add a user form to Excel worksheet?
 
I can make a user form with all the bells and whistles, but how can I get it
to load in my excel program when it opens? I have never tried this before.
Thanks

Nick Hodge

What code do I use to add a user form to Excel worksheet?
 
Hammer

Put code like this in the ThisWorkbook module (Presumes form is called
UserForm1)

Private Sub Workbook_Open()
UserForm1.Show
End Sub


--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS


"Hammer1947" wrote in message
...
I can make a user form with all the bells and whistles, but how can I get
it
to load in my excel program when it opens? I have never tried this before.
Thanks





All times are GMT +1. The time now is 08:29 AM.

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