Calling an excel macro from the ribbon

前端 未结 1 1616
我寻月下人不归
我寻月下人不归 2021-01-03 11:09

Intro: I have written some short excel macros (tested, they work fine) and want to link them to a button in the Ribbon (Excel 2010). I had already done it successfully in Ex

相关标签:
1条回答
  • 2021-01-03 11:31

    Roberto,

    I believe you need to add this param to your macro "control As IRibbonControl"

    So it should look like this:

    Sub EURZ(control As IRibbonControl)
        Application.ActiveCell.NumberFormat = "€ #,##0.00"
    End Sub
    

    Hope that works for you.

    -Justin

    0 讨论(0)
提交回复
热议问题