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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

jolivanes

Well-known Member
Joined
Sep 5, 2004
Messages
1,712
Office Version
  1. 2013
  2. 2007
Platform
  1. Windows
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
 

Watch MrExcel Video

Forum statistics

Threads
1,130,048
Messages
5,639,769
Members
417,111
Latest member
buyukbang

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
Top