PC Review


Reply
Thread Tools Rate Thread

chart source data code

 
 
=?Utf-8?B?S25veA==?=
Guest
Posts: n/a
 
      28th Aug 2007
I am trying to select a range for chart data. Can someone enlighten me why
the following line does not work:

ActiveChart.SeriesCollection(1).XValues = _
Sheets("8 count noif ").Range(Cells(5, 11), Cells(12, 11))

Thank you!
 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      28th Aug 2007
Try this -

With Sheets("8 count noif ")
ActiveChart.SeriesCollection(1).XValues = _
..Range(.Cells(5, 11), .Cells(12, 11))
End With

Strange spelling for a sheet name with the trailing space, but it seems to
work OK

Regards,
Peter T


"Knox" <(E-Mail Removed)> wrote in message
news:56160338-5347-443C-9FD7-(E-Mail Removed)...
> I am trying to select a range for chart data. Can someone enlighten me

why
> the following line does not work:
>
> ActiveChart.SeriesCollection(1).XValues = _
> Sheets("8 count noif ").Range(Cells(5, 11), Cells(12, 11))
>
> Thank you!



 
Reply With Quote
 
=?Utf-8?B?S25veA==?=
Guest
Posts: n/a
 
      30th Aug 2007
it worked, you are the man!

"Peter T" wrote:

> Try this -
>
> With Sheets("8 count noif ")
> ActiveChart.SeriesCollection(1).XValues = _
> ..Range(.Cells(5, 11), .Cells(12, 11))
> End With
>
> Strange spelling for a sheet name with the trailing space, but it seems to
> work OK
>
> Regards,
> Peter T
>
>
> "Knox" <(E-Mail Removed)> wrote in message
> news:56160338-5347-443C-9FD7-(E-Mail Removed)...
> > I am trying to select a range for chart data. Can someone enlighten me

> why
> > the following line does not work:
> >
> > ActiveChart.SeriesCollection(1).XValues = _
> > Sheets("8 count noif ").Range(Cells(5, 11), Cells(12, 11))
> >
> > Thank you!

>
>
>

 
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
Clumsy VBA Code for Chart Source Data from Loop =?Utf-8?B?TWljaGFlbEM=?= Microsoft Excel Programming 2 7th Jun 2005 09:45 PM
Changing a chart source data in code. JimPNicholls Microsoft Excel Programming 1 7th May 2004 03:57 PM
chart with changing data source interactive chart Feketik Microsoft Excel Charting 2 19th Mar 2004 09:26 AM
chart with changing data source interactive chart Feketik Microsoft Excel Charting 0 18th Mar 2004 04:34 PM
Chart Source Data Ranges Changing when Data Sheet updated from text file source. Tekn0 Microsoft Excel Charting 3 8th Jan 2004 04:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:41 PM.