shapesheet

Add Menu Action Programatically to Visio

与世无争的帅哥 提交于 2021-02-11 15:01:15
问题 I'm creating a macro to add a menu button to a selected Visio shape object, so whenever the user right-clicks on the box, an option will appear and will call a macro. I created a couple of properties to the object, which will be used by the action to be called. I can do it ( SUCCESSFULLY ) manually by using the ShapeSheet editor -> View Sections -> Actions -> and configuring the action with the Action value of =CALLTHIS("ThisDocument.myFunction",,Prop.IPAddress) sub myFunction (shpObj as