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

Minimize Word in VBA

Status
Not open for further replies.

Cloonalt

Programmer
Jan 4, 2003
354
US
I Open Word in VBA code using below:

Set oapp = CreateObject("Word.Application")

oapp.Visible = True

After I set Word to visible I want to minimize it. Can I do that?

Thanks.
 
I'll answer my own question.

Set oapp = CreateObject("Word.Application")
oapp.Visible = True
oapp.Application.WindowState = wdWindowStateMinimize
 
LOL! Great! Good job in finding/posting your solution. Now others will have an excellent solution when they have the same problem! :)

Give yourself a star! :)

-----------
Regards,
Zack Barresse
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top