EXCEL Ribbon界面中有个getLabel在EXCEL中可以正常调用,封装到VB中无法调用?是不是写法不一样? 100
SubrxIRibbonUI_onLoad(ribbonAsIRibbonUI)SetgrxIRibbonUI=ribbonEndSubSubrxshared_click...
Sub rxIRibbonUI_onLoad(ribbon As IRibbonUI)
Set grxIRibbonUI = ribbon
End Sub
Sub rxshared_click(control As IRibbonControl)
grxIRibbonUI.Invalidate
End Sub
Sub rxshared_getLabel(control As IRibbonControl, ByRef returnedVal)
Select Case control.ID
Case "rxbtn"
returnedVal = "功能区无效: " & glngCount1 & "次."
glngCount1 = glngCount1 + 1
Case "rxbtn2″"
returnedVal = "功能区无效: " & glngCount2 & "次."
glngCount2 = glngCount2 + 1
End Select
End Sub 展开
Set grxIRibbonUI = ribbon
End Sub
Sub rxshared_click(control As IRibbonControl)
grxIRibbonUI.Invalidate
End Sub
Sub rxshared_getLabel(control As IRibbonControl, ByRef returnedVal)
Select Case control.ID
Case "rxbtn"
returnedVal = "功能区无效: " & glngCount1 & "次."
glngCount1 = glngCount1 + 1
Case "rxbtn2″"
returnedVal = "功能区无效: " & glngCount2 & "次."
glngCount2 = glngCount2 + 1
End Select
End Sub 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询