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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word run a procedure on open 1

Status
Not open for further replies.

cloverdog

Technical User
Mar 4, 2008
41
GB
Is it possible to run a procedure when I open a specific document. I have tried a simple - msgbox "Hello" - in the This Document | Document_Open() but see no message box when I open the document.

I would like to be able to resize and position a document when it opens and possibly start other applications as soon as I open a particular working document. The size and positions may vary dependant on other documents or applications that may be open at the time.

Thank you for any insight into this.

 
ThisDocument > Document_Open in your document should run unless there is something else overriding it - unless you have macro security set to stop it. What version of Word are you using?

Enjoy,
Tony

------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

I'm working (slowly) on my own website
 
Tony, Thank you. You were right my security was set to High I seldom do any VB in Word and it never occured to me to check the security setting.

Once again thank you for your time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top