当前位置: 动力学知识库 > 问答 > 编程问答 >

vba - Click on Excel message box from C#

问题描述:

I have an automation project written in C# that drives Excel. Part of what I need to do in this automation project is click on checkboxes. Each checkbox has a sub attached to it that will raise a message box that asks for the action to be confirmed with a vbYesNo message box.

I C#, when I set the value of the checkbox to true, the vbYesNo message box pops up and I have to manually click the YES button for my test execution to proceed.

Is there a way I can have my automation project "click" on the YES button for me?

分享给朋友:
您可能感兴趣的文章:
随机阅读: