15 second delay when calling excel macro?

C

cr113

We've upgraded from Office 2000 to Office 2003 and now my excel macro
calls are messed up. There's about a 15 second delay from the time I
make the call in VB.NET to the time the excel macro is actually
executed.

Here's my code:

Dim oExcel As Microsoft.Office.Interop.Excel.Application

oExcel = New Microsoft.Office.Interop.Excel.Application
oExcel.Workbooks.Open(FileName:="c:\test\test.xls")
oExcel.Run("test.xls!test.test")

I have a reference set to Microsoft Excel 11.0 Object Library.
 
C

cr113

We've upgraded from Office 2000 to Office 2003 and now my excel macro
calls are messed up. There's about a 15 second delay from the time I
make the call in VB.NET to the time the excel macro is actually
executed.

Here's my code:

Dim oExcel As Microsoft.Office.Interop.Excel.Application

oExcel = New Microsoft.Office.Interop.Excel.Application
oExcel.Workbooks.Open(FileName:="c:\test\test.xls")
oExcel.Run("test.xls!test.test")

I have a reference set to Microsoft Excel 11.0 Object Library.

I'm using Windows 2000. I'm going to test XP to see if the problem
occurs there.
 

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