Select group of Objects - Macro

Zanatos

Board Regular
Joined
May 18, 2007
Messages
65
I have a big group of objects on a picture that I need to select, the only info I have is that it is Group678. The picture is being moved constantly and I need to be able to select it from anywhere on the page with this macro, so I cannot just produce a range where it will always be found. I have a command button that will run this if possible. Does anyone know the command to do this?

Thanks!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi Zanatos

You don't have to select the objects to move them. Assuming they are grouped and the name of the group is Group678 (bad choice of name, it seems), this code moves the group to the top left of the worksheet.

Code:
    With ActiveSheet.Shapes("Group678")
        .Left = 0
        .Top = 0
    End With
 
Upvote 0

Forum statistics

Threads
1,214,574
Messages
6,120,329
Members
448,956
Latest member
Adamsxl

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