PDA

View Full Version : Gluing/connecting connectors to shapes in PowerPoint using VBA



CuriosityBug
11-19-2019, 08:24 AM
Hello,

I am hustling to find a way where I can glue or stick connectors to shapes. Which can also be said like, changing dynamic connectors to static connectors.So that when a shape is moved connectors stick to that shape and adjust accordingly. Please help: pray2:

I did lot of research was unable to find a way. Many solutions were on visio which I am not using.

This is the case I am trying to achieve, but by uisng VBA:
https://www.indezine.com/products/powerpoint/learn/shapes/2013/creating-connector-anchor-points.html

Thought this would help us to start:
https://stackoverflow.com/questions/22104640/check-if-a-connector-has-the-endconnectedshape-vba-ppt
https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2010/ff746407(v=office.14)?redirectedfrom=MSDN

I am working on it as well, if I find a solution I will update the feed. Thank you.

Paul_Hossler
11-19-2019, 11:21 AM
May be possible, but probably not worth the effort to make a flexible solution in VBA

I always just do it with the mouse

I've also put my 'special' shapes after formatting (color, border, text, anchor points, etc.) on slides in a 'library' presentation and copy/pasted as needed


25440

CuriosityBug
11-19-2019, 11:55 AM
Hello Paul,

Thanks for the insights. Assuming there were already many connectors between boxes in a slide, running a macro which sets these connectors to stick with boxes. Can we solve this in any way? As shown in picture, the connector is not actually connected to shape displaying grey connection points instead of green connection points.

May be possible, but probably not worth the effort to make a flexible solution in VBA

I always just do it with the mouse

I've also put my 'special' shapes after formatting (color, border, text, anchor points, etc.) on slides in a 'library' presentation and copy/pasted as needed


25440

Paul_Hossler
11-20-2019, 07:36 AM
There MIGHT be a way to do it, but it's w..a..y beyond my PP abilities

Also, I'm moving this to the PP forum since you might get more people looking at it there

CuriosityBug
11-21-2019, 08:04 AM
with ray of hope..
Thanks Paul