单击一个按钮以激活其他工作表中的其他按钮 [英] Click one button to activate other buttons in other sheet

查看:74
本文介绍了单击一个按钮以激活其他工作表中的其他按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张包含三张纸的Excel文件。在表2和表3上有按钮(用于该表上的求解器)。现在我想在工作表1上有一个按钮来激活工作表2和工作表3上的按钮(这样两个工作表的解算器进程就会开始)。

I have a Excel file with three sheets. On sheet 2 and sheet 3 are buttons (for the solver on that sheet). Now I want to have a button on sheet 1 that activates the buttons on sheet 2 and sheet 3 (so that the solver process will start for both sheets).

我该怎么做?

提前致谢。

Ganesh

推荐答案

什么类型的按钮控件? ActiveX或表单控件?

What type of button controls? ActiveX or Forms Controls?

如果表单控件然后在按钮调用的代码中,您可以调用其他按钮的代码。但是,它只会一次处理一个,直到每个被调用的sub完成并返回到调用代码。

If forms control then in the code that is called by the button you can place a call to the code for the other buttons. However, it will only process one at a time until each called sub is finished and returns to the calling code.

另外,如果使用Forms Controls,则可以从多个按钮调用相同的模块。

Also, if using Forms Controls then the same module can be called from multiple buttons.

即使模块名称包含在调用中,我也不相信它可以与ActiveX控件一起使用。

I don't believe it will work with ActiveX controls even if the module name is included in the call.


这篇关于单击一个按钮以激活其他工作表中的其他按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆