Macros Not Showing Up in Macro Table

前端 未结 5 1547
灰色年华
灰色年华 2020-12-11 07:06

I am writing VBA macros in excel 2016. Macros I write that have arguments do not show up in the Macro Table, only the ones that have no arguments. Help.

5条回答
  •  庸人自扰
    2020-12-11 07:32

    The macro is not listed when it has parameters, but knowing the name you should be able to simply write the name and theirs parameters when Excel prompts in the Assign Macro window, using single and double quotes.

    The following example will guide you how to do it:

    'mymacro "param1"'
    'mymacro TRUE, FALSE'
    'mymacro "param1","param2"'
    

提交回复
热议问题