Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default multiple chart indexes

Hello,

I am having an issue with some sheets that contain
charts. I am programatically looping through charts on
each sheet with a for each loop when I noticed that some
sheets that only have 11 charts contain multiple chart
indexes. For example, sheet2 has 11 charts, but when I
loop through the chart objects on that sheet, it counts 22
indexes. This problem multiplies for each sheet in turn
(sheet 3, 33 indexes, sheet 4, 44 indexes, etc). I cannot
find these other charts anywhere on the sheets. I only see
11 charts. I tried moving them to see if there were hidden
charts stacked, but nothing. I looped through setting each
chart's visible property to true, still nothing. How do I
rid my worksheets of these multiple chart indexes when
they don't exist? There should only be 11 charts on each
sheet, not the multiples of 11 that appear to be there.

Thanks for any help/advice,

-Jack
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default multiple chart indexes

Jack -

On sheet 2 are there 22 charts, or 11 charts, numbered from 12 to 22?
Type (or copy-paste) this in the Immediate window with sheet 2 active in
Excel, and press Enter:

? Activesheet.ChartObjects.Count

If you think there are other charts, try this:

Activesheet.ChartObjects.Visible = True

Activesheet.ChartObjects.Select

etc.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Jack wrote:

Hello,

I am having an issue with some sheets that contain
charts. I am programatically looping through charts on
each sheet with a for each loop when I noticed that some
sheets that only have 11 charts contain multiple chart
indexes. For example, sheet2 has 11 charts, but when I
loop through the chart objects on that sheet, it counts 22
indexes. This problem multiplies for each sheet in turn
(sheet 3, 33 indexes, sheet 4, 44 indexes, etc). I cannot
find these other charts anywhere on the sheets. I only see
11 charts. I tried moving them to see if there were hidden
charts stacked, but nothing. I looped through setting each
chart's visible property to true, still nothing. How do I
rid my worksheets of these multiple chart indexes when
they don't exist? There should only be 11 charts on each
sheet, not the multiples of 11 that appear to be there.

Thanks for any help/advice,

-Jack


Reply
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
Change Chart Properties for Multiple Chart Shts using a Worksheet KUMPFfrog Charts and Charting in Excel 0 July 22nd 09 11:01 PM
Vlookup using concatenated column indexes Matt Excel Worksheet Functions 7 June 9th 08 02:07 AM
Multiple chart types on same chart DKS Charts and Charting in Excel 1 October 30th 07 02:57 PM
Multiple chart series for Pivot Chart MJW[_2_] Charts and Charting in Excel 0 August 15th 07 08:16 PM
Figuring out what the Shape Indexes are. Jeff Reed Excel Programming 1 August 21st 03 11:44 PM


All times are GMT +1. The time now is 02:12 PM.

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

About Us

"It's about Microsoft Excel"