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!

another question on Excel and VB

Status
Not open for further replies.

mn12

Programmer
Dec 22, 2002
52
IL
I create reports by Excel and use them with vb application.
when the application is running,the reports are displayed by printpreview method.
the problem is: before the report is displayed,
I see for a second the regular workbook of excel(with the gray and white squares).

how can I solve the problem??
 
set

AppExcel.screenupdating=false
at the beginning of your code (after you create the Excel application object), then turn it to true right before you execute the print preview command.
Rob
[flowerface]
 
Hi,

Is your XL sheet contain a select or database procedure that requires parameters? If yes, how do you set the parameters and retreive the Excel report. (A code snippet would be great...)

Thanks,

Computergeek
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top