MsoType for converted Smartshape Rectangles

Drofidnas

Board Regular
Joined
Jun 30, 2004
Messages
126
Hi

I'm writing some code to convert a SmartArt organisation chart to shapes and then extract the text.
The converted rectangles don't appear to be msoShapeRectangles though.
They are called Freeform xx which isn't a valid mso type.

Any idea what they might be?!

Thanks

Chris
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Re: MsoType for converted Smartshape Recrangles

Hi

They are MsoFreeform. You get them when you draw a polyline.
In the Ribbon->Insert->Shapes you can click on the symbol that has the tooltip Freeform.
You just click on vertices and the tool connects them automatically with segment lines (can also be with curved lines).

Record a macro and build one to see how the code works.
It starts by creating a FreeformBuilder Object and then adds the vertices. At the end it converts to a shape.
 
Upvote 0
That's great - thanks very much!
Even with my embarrassing title typo you knew what I meant.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top