Calling VBA MAkros from Ribbon (Usage of CustomsUIEditor

Started by felsioufy, May 01, 2016, 08:44:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

felsioufy

Dear all,
I am new to this forum and would apreciate your help.
What I Intend:
I want to extend the Menu in the VISIO ribbon and call VBA Macros, that are located in an *vssm file. To achieve this I did the following:
1. create a stencil and save is by the name of Test.vssm
2. Open th estencil with the CunstomUIEditor and add the specific XML-code (I used the templatees). Store the Stencil
3. create the Callback-Code-Templates in UIEditor and copy the template
4. open test.vssm in VISIO and create the subs (Callbacks) in the VBA editor
5. Save and close test.vssm again.
6. create visio drawing and add tencil test. The menus and buttons I defined appear.
but 7. Click to the button will have no effectr. The callbacks are not activated.

If i do the same procuder in a vsdm file, th econstruction works, and the callbacks deliver results. I assume, that the syntaxt of the call has to be amneded, if the VBA Code is in the *.vssm. But I don't know how.
Does anybody know th esolution? Or has anybody an idea how or where to search?
Thanks in advance,
felsioufy



JuneTheSecond

#2
Thomas Winkel Has recently submitted a great work at User Submitted Stuff at
http://visguy.com/vgforum/index.php?topic=7134.0
Best Regards,

Junichi Yoda
http://june.minibird.jp/

felsioufy

Hello both,

Thanks for the quick reply. The example works on my installation (Visio 2013), and is build up in a way that makes clear how to procede.

I think, I will be able to finilize my use case.

Have a nice time, felsioufy