Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

How can I interrupt VBA routines via C# Interop Automation?

$
0
0

Good Day,

I have a program that automates excel quite extensively via C# interop automation. 

A feature I must build requires that I run a VBA method if it exists in the workbook that part is working fine, however I would like to put a time limit on how long the VBA routine is aloud to run so that I can cleanly cancel the VBA and return control to the main application.

Any assistance anyone may have would be greatly appreciated.


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>