Automating Shapes Swaps (Symbol Changes)??

C

Crimson

Hi,

I am documenting and automating flowcharts (using Basic Flowchart Shapes).
Some of the diagrams we get as inputs are already built using these shapes
types. But some of the shapes must be replaced by something else. Right
now, this process is done manually and is very tedious.

I need to automate two type of shape swaps. Let's say I have already
identified my shapes using their IDs in my code and that my Shape Object is
ready to be manipulated.

Swap type A:
Replace a Shape (the actual picture / symbol) with another. For example, I
have multiple "Process" type shape that need to be replaced by "Off-page
reference" shape type.

Swap type B:
Replace a Shape format variance (optional formats of a single shape, usually
available by right clicking on the shape and selecting a variance for the
shape). For example, I have "Off-page reference" shapes that use the
Pentagone-like format; and these need to be changed to the Arrow-like format.

Is this possible in some way??

Thanks grandly!
 
A

Al Edlund

It appears you may have overlooked the need to investigate what connections
are defined for the shapes (and the shapes/links), so that the links get
reattached.
al
 
C

Crimson

Forget about Swap Type B. I simply used:

CellsSRC(visSectionUser, 0, visUserValue).FormulaU = #
where # can be 1,2,3,4.

But still trying to find out A).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top