Vba to find the control points on a non freeform autoshape or vba to change shape to freeform

HarryS

Board Regular
Joined
May 2, 2008
Messages
212
I am trying to come to terms with excell 2010 autoshapes. (and no record macro for these.)
The insert shape gives shapes where the points are not to be found by me but perhaps by you.. as
ShapePtsArray = .Item(Li).PointS only works for freeform shapes or
If on the shape you use rightclick and edit points and move a point this converts the shape into a freeform with control points.
this changes it from a type 1 to a type 5 and its AutoshapeType to 138

and ShapePtsArray = .Item(Li).PointS works
and you can make it into Bezier curves, polyPoints, etc
to use ActiveSheet.Shapes.AddPolyline ; to draw shapes
and hRgn = CreatePolygonRgn(PolyPtsA(0), CPointS, 1) ' to get regions of a window
But there should be a way to do this with code and not have to resort to change the shape type by moving a point????
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

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