PDA

View Full Version : How to automatically change size of textbox based on other shape size in PowerPoint



kperiyapalem
09-06-2018, 12:10 AM
Hi,

Is it possible to alter size of shapes based on another shapes size through VBA?

For eg. I have an image place holder (A) & text box (B) placed side by side in a slide. If I increase the width of B by 5pt automatically width of A should get reduced by 5pt and vice versa.

Please let me know if this possible.

- Krishna

John Wilson
09-08-2018, 12:37 PM
Possible? - yes.

But I doubt you will be able to write the code unless you know how to construct a Class Module with events. (I guess if you knew you wouldn't be asking and no I'm
not about to do it for you)

IF you are a skilled coder you can download a proof of concept from here (http://www.pptalchemy.co.uk/Downloads/linksize.pptm). Note it's just that not a finished solution you will need to do a fair bit of work.