VBA UserForm

P

Paul Breslin

Hello -

I want a UserForm to load when I open a document.
How do I get the application to load a UserForm on starting?
Thanks,
Paul
 
R

rub

Hello -

I want a UserForm to load when I open a document.
How do I get the application to load a UserForm on starting?
Thanks,
Paul

Create a form. Call it frmNewForm.
Then create the following in ThisDocument:

Private Sub Document_Open()
frmNewForm.show
end Sub
 
Top