load form into word upon opening

M

marilyn

I have a form that I have created in word using VBA, how do I call it up
automatically when MS Word opens? What is the code and where do I put it?

Thank you,
 
A

Anne Troy

Hi, Marilyn. Try this:
Sub Document_Open()
UserForm1.Show
End Sub

If it's a template, change the name to Sub Document_New()
The sub goes into ThisDocument.
************
Anne Troy
www.OfficeArticles.com
 
M

marilyn

Thank you Anne, It is not a template, I designed the form using VBA Forms and
called it Userform1. I am a newbie at this so please just be patient with me.
Once this has been accomplished I need to figure out out to break the form
down into two pages and then add a table. I keep telling myself one step at a
time and I will get it.
 
M

marilyn

I have been working with access and just trying to learn it on my own. This
form will work just great, Thank you! Thank you!
 
A

Anne Troy

You're welcome! It's a lot like people who search for help on a checkbox end
up using the Control Toolbox instead of the Forms Toolbar, and it's just a
crying shame. Good luck! You'll likely be much happier with this method.
************
Anne Troy
www.OfficeArticles.com
 

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