Visio Guy

Visio Discussions => Programming & Code => Topic started by: metuemre on December 09, 2019, 12:32:26 PM

Title: VBA Call from 2D Shape
Post by: metuemre on December 09, 2019, 12:32:26 PM
Hi all,

I'm trying to call a VBA macro from a 2D shape if a connector is connected to or disconnected from one of the connection points of the 2D shape but I couldnt find a cell in the 2D shape that changes its value with this connect/disconnect process. Incoming or outgoing connectors have BegTrigger and EndTrigger cells that changes but I need a cell in the 2D shape.

Do you know a way to accomplish this?

Regards
Emre
Title: Re: VBA Call from 2D Shape
Post by: Yacine on December 09, 2019, 01:05:27 PM
Hi Emre,
A solution for this problem would indeed by nice, but I only know of solutions based on both connectors and 2D shapes.
Here's a thread, in which you were involved and which demonstrates Junichi's solution: http://visguy.com/vgforum/index.php?topic=8542.0 (http://visguy.com/vgforum/index.php?topic=8542.0)
Cheers,
Y.
Title: Re: VBA Call from 2D Shape
Post by: metuemre on December 10, 2019, 09:15:11 AM
Hi Yacine,

It would be nice to handle it in 2D shape directly, thanks anyway.

Regards,
Emre
Title: Re: VBA Call from 2D Shape
Post by: vojo on December 10, 2019, 11:31:28 AM
if doing VBA, why not other way around:  Make a small list or DB.  when connector placed, it updates list with
connector name, srce, dest.   Then if something of 2D, query the list or DB to see if connected.