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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top