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

quick question: how to set focus on word??

Status
Not open for further replies.

upplepop

IS-IT--Management
Jun 1, 2002
173
US
What is the command to set the focus on a Word document so I can reference it?

Thanks.
 
Try this
Code:
   Dim MyWord As Object  

   Set MyWord = GetObject(, "Word.Application")

    MyWord.Application.Visible = True
    MyWord.Parent.Windows(1).Visible = True
HTH

Mincefish
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top