468,119 Members | 1,683 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,119 developers. It's quick & easy.

15 second delay when calling excel macro?

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.

Mar 1 '06 #1
1 3774

cr***@hotmail.com wrote:
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.

Mar 1 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by cr113 | last post: by
4 posts views Thread by FAQ server | last post: by
2 posts views Thread by =?Utf-8?B?Vmlua2k=?= | last post: by
1 post views Thread by =?Utf-8?B?Vmlua2k=?= | last post: by
13 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.