gpt4 book ai didi

excel - VBA 单击 Excel 工作表中的按钮

转载 作者:行者123 更新时间:2023-12-03 00:32:13 24 4
gpt4 key购买 nike

我需要单击 Excel 工作表上的按钮(FormControl)并通过 VBA 代码运行分配给它的宏。

我尝试了这里建议的内容 https://stackoverflow.com/questions/130166/clicking-command-button-from-other-workbook 但它对我不起作用。

还有其他方法可以做到这一点吗?

最佳答案

执行此操作的方法相当简单,即使没有真正记录下来。

CommandButton1.Value = True

关于excel - VBA 单击 Excel 工作表中的按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12616165/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com