Visio Guy

Visio Discussions => Programming & Code => Topic started by: TwoBeAss on March 27, 2024, 07:20:12 AM

Title: Fix mastershape that would be added with external data drag'n drop
Post by: TwoBeAss on March 27, 2024, 07:20:12 AM
Is it possible to fix somehow the shape that would be added to the drawing if you drag and drop a data row out of the external data window to the sheet ?
I always have to select the right mastershape first and then drag it to the page, it would be much easier if i could somehow configure which one should be taken, cause its always the same...
Title: Re: Fix mastershape that would be added with external data drag'n drop
Post by: Yacine on March 27, 2024, 07:53:00 AM
Not so easy.
I wonder if you can catch the drop event, then make sure that the right master is dropped?

https://learn.microsoft.com/en-us/office/vba/api/visio.datarecordset.eventlist
Title: Re: Fix mastershape that would be added with external data drag'n drop
Post by: TwoBeAss on March 27, 2024, 08:20:16 AM
Yeah, i was afraid of that... I was hoping i just overlooked a setting, thanks for your help...