How to open an Excel window hidden

W

Woody

Hello,
I want to open an Excel file from another application, to read some data
from Excel. But i want to keep the Excel window hidden.
The following macro opens the workbook hidden, but the Excel frame still
displays on screen.
How to get rid of this XL window ?
Thanks ahead

Set XLApp = New Excel.Application
XLApp.WorkBooks.Open FileName:=NomClasseurXL
XLApp.Visible = False

Woody
 
S

SteveM

I think you could minimize the Excel instance or set
Application.ScreenUpdating = False from the calling app, then open
Excel, get the data, close Excel and reset Updating = True.

SteveM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top