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

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

jolivanes

Well-known Member
Joined
Sep 5, 2004
Messages
1,932
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,506
Messages
5,837,745
Members
430,515
Latest member
K_Lynch

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