功能区回调函数 [英] Ribbon Callback Function
问题描述
我有一个自定义功能区与Access 2007 Adp一起正常工作。我正在使用功能区中的宏来触发事件。
当我尝试从模块调用函数时,我收到错误消息:无法运行宏或回调函数'FuncName'
我试图将这些函数公开并将它们放在自己的模块上。但我无法看到这个功能。
感谢您的帮助:)
您好,
您还有两种方法:
1。真正的回调
真正的回调必须是一个Sub并且必须有一个参数 - 一个调用这个回调的控件。示例:
XML:
< 按钮 id = " OpenSP " imageMso = " ViewsReportView " label = " SP "
屏幕提示 = " 打开标准报告面板 " size = " large " onAction = " SP_click " />
Hi,
I have a custom ribbon that is working fine with Access 2007 Adp. I am triggering events using macros from the ribbon.
When I try to call a function from the modules I get the error message: can't run the macro or callback function 'FuncName'
I tried to make the functions public and put them on their own module. But I cannot get it the ribbon to see that function.Thanks for your help :)
解决方案Hi,
you have 2 ways to go:
1. Real callback
Real callback must be a Sub and must have an argument - the control which calls this callback. Example:
XML:
<button id="OpenSP" imageMso="ViewsReportView" label="SP" screentip="Open a standard reporting panel" size="large" onAction="SP_click"/>
这篇关于功能区回调函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文