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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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,214,813
Messages
6,121,706
Members
449,048
Latest member
81jamesacct

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