[英]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.