Select chart object in Excel 2007

  • Thread starter Thread starter Luca Brasi
  • Start date Start date
L

Luca Brasi

Is it possible to select an existing chart object using VBA? The chart
should be selected as if I would have clicked on it manually (thick
border around it). In Excel 2007.
Thanks
 
thanks tom, but this does not select the chart object as if you would
have selected it manually (in Excel 2007). Or does it at your place?? I
have just one Office 2007 installation available for doing some testing.
 
try this instead:

ActiveSheet.ChartObjects(1).Activate
ActiveChart.ChartArea.Select

You can use the name like "Chart 1" instead of the index number in Chart
Objects.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top