从function区中的自定义button调用macros
从Developer -> Macros - Macro1
调用以下macros运行正常
Sub Macro1() ThisWorkbook.FollowHyperlink "http://www.portal-gestao.com/financas.html" End Sub
但是,由于我在function区中使用了一个自定义button,我正在调用macros:
<button id="customButton4" label="Finanças" onAction="Macro1" imageMso="HyperlinkInsert" />
哪个是返回错误:
Wrong number of arguments or invalid property assignment
基本上,我想打开一个网页,当用户点击function区上的自定义button。 我怎么做?
您需要修改您的macros以包含此参数:
Sub Macro1(control As IRibbonControl)