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!

minimize excel from vb

Status
Not open for further replies.

mn12

Programmer
Dec 22, 2002
52
IL
Hi,
I create reports by excel.my reports are running from vb application (I use VBA and not a control in order to display the report).
when I display the report (like "display before printing")and I press on the button that minimize the report,the report only becomes smaller but the vb program stays on normal size.
My question is:How can I minimize the whole application(the excel report AND vb program) together??
 
You can minimize the Excel application window using

AppExcel.windowstate=xlMinimized

where AppExcel is your application object, and xlMinimized is an Excel constant (=-4140)

Rob
[flowerface]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top