Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WORD Code and userforms

Status
Not open for further replies.

iXPhound

Technical User
Feb 25, 2001
146
US
Hello all:

Quick question I hope. I am familiar with VB but I am having some problems with coding in Word. I have never actually worked with VB in word. I have created a userform in Word and I do not know how to call it. Where do I tell the form to open? Document_Open()? If so what is the syntax (docmd.open userform, etc)?

TIA!!
 
VB and VBA syntax aren't that synonymous unfortunately.
if you want the form to open with the document

Public sub Document_Open()

userform1(or whatever yours is named).show

end sub

Tranpkp
************************************
- Let me know if this helped/worked!
Please remember to give helpful posts the stars they deserve!
This facilitates navigating through the threads / posts!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top