Excel adding a shape to a shape in group

jpradeepraj

New Member
Joined
Feb 10, 2016
Messages
4
Hi,

I have a group (with name "rep") of circles, and each circle has a name, c1, c2.. etc. Now, I want to add arrow into each circle. The arrow is added to the excel and named as "downarrow".

Could you please let me know how I can do this?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
This will ungroup the grouped ovals. Need to be grouped after again together with the arrows I would think.
Try on a copy of your workbook as I am pretty sure that there will be follow up questions coming.
Code:
Sub jolivanes()
Dim shp As Object
    ActiveSheet.Shapes("rep").Ungroup
    For Each shp In ActiveSheet.Shapes
        If shp.AutoShapeType = msoShapeOval Then
            ActiveSheet.Shapes.AddShape(msoShapeDownArrow, shp.Left + shp.Width / 2 - 5, shp.Top, _
            10, shp.Height).Select
        End If
    Next shp
End Sub
 
Upvote 0

Forum statistics

Threads
1,216,410
Messages
6,130,417
Members
449,581
Latest member
econtent2

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