[英]Excel Macro button not show macro with parameter
我是Excel宏的新手,我尝试编写一个名为Test的无参数测试宏,然后在Excel工作簿中按宏按钮,测试宏如下所示:
但是如果我将参数添加到宏测试中
Public Sub Test(var1 As String)
然后当我返回工作簿时,按宏按钮,则不显示“测试”宏,为什么? 宏不能带有参数吗?
该宏未显示,因为您已强制将参数作为过程的一部分进行传递,从而使该过程无法独立运行。
[英]How to assign a macro that uses parameter to a button in excel
[英]Parameter to form button macro?
[英]Excel Save As Button Macro
[英]Button with macro in Excel
[英]Excel Macro Button
[英]Parameter transmission from Excel into Macro
[英]Excel macro to include parameter in Range
[英]Macro button broken in Excel 2013
[英]clicking next button with excel macro
[英]Excel cannot assign macro to a button
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.