Select All charts in active sheet

84wister

New Member
Joined
May 2, 2014
Messages
5
I feel like this should be incredibly straightforward but it's evading me for whatever reason, and i'm getting irritated. I just want a simple one liner that will select all of the charts on the active sheet without having to concern myself with chart names, or grouping. Something functionally equivalent to clicking all of the charts while holding the crtl key. No, recording as a macro doesn't work so please don't tell me thats what i need to do. On my version of excel (i.e. 2007), recording a macro only gives me the last chart i selected. Here's what i've already tried

activesheet.chartobjects.activate
activesheet.chartobjects.select
activesheet.chartobjects.selectall
activesheet.chartobjects.select false

I work with large amounts of data spread cross numerous sheets so solutions where i have to define names, or chart groupings don't work well as names and numbers of charts are constantly fluctuating in what i'm doing. I just need a macro that will easily select all the charts on an active sheet so i can move them around easily, and quickly cut and paste to different sheets via ctrl-c and ctrl-v. Any help would be much appreciated, thanks.
 
Yea it does the same thing as with manually copied charts. Selects the chart with the highest index in the chart objects collection
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Just to test, did you try this line that Domenic posted on another thread a while ago:

ActiveSheet.Shapes.Range(Array("Chart 1", "Chart 2")).Select

replacing Chart 1, 2 etc if necessary
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,668
Members
449,463
Latest member
Jojomen56

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