T
teejayem
I am using Visual Basics.NET to read data from an Excel file.
I am using the following code
Dim xlApp as Excel.Application
Dim xlBook as Excel._Worksheet
xlApp = CreateObject(Excel.Application)
xlBook = xlApp.WorkBooks.Open("path of Excel file")
------------------------------
This works fine but my problem is that if i open another Excel
document whilst my program is running the Excel document the program
has opened becomes visible to the user. If they then close Excel down
this closes down the document my program is using and causes errors.
Is there any way of stopping this?
Any help is much appreciated.
Kind Regards,
Tom Miller.
I am using the following code
Dim xlApp as Excel.Application
Dim xlBook as Excel._Worksheet
xlApp = CreateObject(Excel.Application)
xlBook = xlApp.WorkBooks.Open("path of Excel file")
------------------------------
This works fine but my problem is that if i open another Excel
document whilst my program is running the Excel document the program
has opened becomes visible to the user. If they then close Excel down
this closes down the document my program is using and causes errors.
Is there any way of stopping this?
Any help is much appreciated.
Kind Regards,
Tom Miller.