LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default Multiple chart selection in Excel 2007

Brian,
I think your suggestion of naming the chart as you create it is the way to
go.

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"Brian Murphy" wrote in message
...
Andy,

I've come across an interesting twist on this multiple chart selection
story. Sometimes it works great, but sometimes not.

I use code to create a series of charts on the user's worksheet by
copy/pasting a chart template from a template workbook. In excel 2003
those charts would end up with .Name properties like Chart 1, Chart 2,
etc. But in Excel 2007 they all take on the same name property equal
to whatever the .Name property was in the template workbook. Most
importantly - they all have the same .Name property if made from the
same template, which is really weird.

The loop does not work in this situation. In fact, I can tell
something strange is happening because Excel 2007 acts rather funny
when holding down the shift and/or control keys while trying to select
several charts. What ends up happening is the loop acts on the same
chart each time through the loop.

I think I need to change my code to specifically give the pasted
charts unique Name properties. Unless you can suggest a better
approach. I haven't done this, yet. That's what I intend to work on
next.

Brian


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007: Selecting multiple objects by drawing a selection box panalysis Excel Discussion (Misc queries) 4 April 2nd 23 07:41 PM
Excel 2007 Chart Data Selection- Arrow Keys Frustration Kerry[_2_] Excel Worksheet Functions 0 April 7th 11 05:00 AM
2007 Excel Workbook multiple worksheets I want 1 chart Dwade Charts and Charting in Excel 2 May 4th 09 05:06 AM
excel 2007 multiple data selection colour Larry North Excel Discussion (Misc queries) 4 May 26th 08 03:02 AM
Chart Selection - Excel 2007 copy to Powerpoint 2007 GS80 Charts and Charting in Excel 1 February 7th 08 01:30 PM


All times are GMT +1. The time now is 06:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"