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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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