从Developer -> Macros - Macro1
Sub Macro1()
ThisWorkbook.FollowHyperlink "http://www.portal-gestao.com/financas.html"
End Sub
但是,由于我在功能区中使用自定义按钮,我将调用宏:
<button id="customButton4" label="Finanças" onAction="Macro1" imageMso="HyperlinkInsert" />
返回错误:
Wrong number of arguments or invalid property assignment
基本上,我想在用户点击功能区上的自定义按钮时打开网页。我该怎么做?
答案 0 :(得分:2)
您需要修改宏以包含此参数:
Sub Macro1(control As IRibbonControl)