I have formed a process using SmartArt and would like to add icons to the chart area, which works fine! But, when copying or marking in order to move or resize, icons are not following. Is there any work arounds on this issue?
Thanks for replying. The problem with grouping objects is the need of marking the chart area and every single object within that area in order to group them -.-
Another issue is that the grouping of all objects seem to disappear from time to time, so I need to re-do it every now and then.
If all objects involved are shapes, you can use the code below.
It assumes unique shape names. If there are duplicated names, we can refer by index.
Code:
Public Sub GShapes()
Dim sh As Shape, shn(), ns%, ws As Worksheet
Set ws = ActiveSheet
For Each sh In ws.Shapes
ReDim Preserve shn(ns)
shn(ns) = sh.Name
ns = ns + 1
Next
ws.Shapes.Range(shn).Group
End Sub
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.