PC Review


Reply
Thread Tools Rate Thread

Count charts on Worksheet

 
 
harm.charles@gmail.com
Guest
Posts: n/a
 
      7th Aug 2008
Hi,

I'm now having another problem with charts.
What is happening now is that when I copy a chart to another location
in the same worksheet the chart count goes up.
So if I copied the same chart 10 times the ChartObjects("Chart 10").
Now when I "Right click" the chart and select "Clear" this removes the
chart. I do this for all charts except for the original. I have my
program set to count the charts, which the sheet only has the
original but the code will count all charts that were created and
cleared.
Is there a way to count the actual number of charts in the worksheet
and not the ones that were cleared?

Thanks

 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      7th Aug 2008
cntChtObjs = Activesheet.Chartobjects.Count

Regards,
Peter T

<(E-Mail Removed)> wrote in message
news:dd186d4a-7bb3-462b-a0f4-(E-Mail Removed)...
> Hi,
>
> I'm now having another problem with charts.
> What is happening now is that when I copy a chart to another location
> in the same worksheet the chart count goes up.
> So if I copied the same chart 10 times the ChartObjects("Chart 10").
> Now when I "Right click" the chart and select "Clear" this removes the
> chart. I do this for all charts except for the original. I have my
> program set to count the charts, which the sheet only has the
> original but the code will count all charts that were created and
> cleared.
> Is there a way to count the actual number of charts in the worksheet
> and not the ones that were cleared?
>
> Thanks
>



 
Reply With Quote
 
harm.charles@gmail.com
Guest
Posts: n/a
 
      7th Aug 2008
On Aug 7, 3:36 pm, "Peter T" <peter_t@discussions> wrote:
> cntChtObjs = Activesheet.Chartobjects.Count
>
> Regards,
> Peter T
>
> <harm.char...@gmail.com> wrote in message
>
> news:dd186d4a-7bb3-462b-a0f4-(E-Mail Removed)...
>
> > Hi,

>
> > I'm now having another problem with charts.
> > What is happening now is that when I copy a chart to another location
> > in the same worksheet the chart count goes up.
> > So if I copied the same chart 10 times the ChartObjects("Chart 10").
> > Now when I "Right click" the chart and select "Clear" this removes the
> > chart. I do this for all charts except for the original. I have my
> > program set to count the charts, which the sheet only has the
> > original but the code will count all charts that were created and
> > cleared.
> > Is there a way to count the actual number of charts in the worksheet
> > and not the ones that were cleared?

>
> > Thanks


Peter T

Thanks it works.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Jerk Count Off The Charts measekite Windows Vista General Discussion 5 10th Jul 2008 01:59 AM
Count of Worksheet rows and recording this count mikerobe Microsoft Excel Programming 2 21st Mar 2007 02:17 AM
TIP: Worksheets vs. Sheets (w/Charts) Count EphesiansSix Microsoft Excel Programming 2 11th Jul 2006 08:59 PM
Charts for sugar count TC Microsoft Access 2 17th Jan 2004 10:46 AM
Re: Two 3D Pie Charts on one worksheet Jon Peltier Microsoft Excel Charting 0 19th Sep 2003 06:37 PM


Features
 

Advertising
 

Newsgroups
 


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