Open file and keep it hidden

J

jodleren

I am pretty sure I posted yesterday regarding this...

when automating Excel, I use GetObject (GetActiveOleObject in Delphi)
and use Excel if already open.
Then I open a file, change (replace) something in it, and save it
again.

Can I do this hidden?
I mean, so my file does not appear in the task bar?
I can hide the window, but --- when I open the file it will flash for
a short second.

Any ideas?

WBR
Sonnich
 
J

joel

Use Create object then use the object to open the workbook. somethin
like this



Set Newobj = CreateObject("Excel.Application)
Newobj.visible = False
Newobj = workbooks.open(filename:="book1.xls"
 

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