J
John Mercure
I am trying to use C# to execute an Excel macro, via Excel.Application.Run.
The macro seems to launch, but hangs there. I am trying to do this while
Excel is invisible.
After encountering the hanging problem I decided to make Excel visible so I
could see what is happening. At this point I saw that Excel was just
freezing and not running the macro. However, if click on Excel the macro
takes off and completes successful.
The macro is performing a series of text replacements.
So my question is why would the macro hang in such a manner and how can I
emulate clicking Excel to get the macro to run.
Again the Workbook is being opened via C# and the macro is being launched
from C# using Excel.Application.Run.
- John Mercure
The macro seems to launch, but hangs there. I am trying to do this while
Excel is invisible.
After encountering the hanging problem I decided to make Excel visible so I
could see what is happening. At this point I saw that Excel was just
freezing and not running the macro. However, if click on Excel the macro
takes off and completes successful.
The macro is performing a series of text replacements.
So my question is why would the macro hang in such a manner and how can I
emulate clicking Excel to get the macro to run.
Again the Workbook is being opened via C# and the macro is being launched
from C# using Excel.Application.Run.
- John Mercure