Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Changing Data and Charts

Excel 2000 / WIN2K
================================================== =========
Thanks for looking at my request.

I have a workbook with 2 sheets in it. Sheet1 is called "RawData" and Sheet2 is called "Chart". Whern you start Excel and open the book, a opopup form asks you for a date range. Once you enter a valid date range, I query SQL Server and extract the proper data and return it to RawData sheet. The number of columns remains the same but the rows can be from none to thousands.

My question is how can I setup the Chart sheet to handle the changing dataset ?

I'm an excellent VB programmer but cannot figure out the proper object to use to manage the chart and data.

Thanks to all and happy holidays.

Craig







  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Changing Data and Charts

I just recorded a macro while changing the ranges. I've modified the Range
definition though.

ActiveChart.SeriesCollection(1).XValues = Range("A1:A500")
ActiveChart.SeriesCollection(1).Values = Range("B1:B500")


"Craig Somberg" wrote in message
...
Excel 2000 / WIN2K
================================================== =========
Thanks for looking at my request.

I have a workbook with 2 sheets in it. Sheet1 is called "RawData" and

Sheet2 is called "Chart". Whern you start Excel and open the book, a opopup
form asks you for a date range. Once you enter a valid date range, I query
SQL Server and extract the proper data and return it to RawData sheet. The
number of columns remains the same but the rows can be from none to
thousands.

My question is how can I setup the Chart sheet to handle the changing

dataset ?

I'm an excellent VB programmer but cannot figure out the proper object to

use to manage the chart and data.

Thanks to all and happy holidays.

Craig









  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Changing Data and Charts

The object you need is the ChartObjects("chartname").Chart
and use the SeriesCollection().Values property
or the .XValues property
Make sure that the ranges are not empty or that will cause
you lots of grief

To change the axes scaling, use the .Axes(xlCategory) or
..Axes(xlSeries) or .Axes(xlValues) objects
and their .MinimumScale and .MaximumScale properties
(but make sure that .MinimumScale < .MaximumScale as you
change them)

Kevin Beckham

-----Original Message-----
Excel 2000 / WIN2K
================================================= =========

=
Thanks for looking at my request.

I have a workbook with 2 sheets in it. Sheet1 is

called "RawData" and Sheet2 is called "Chart". Whern you
start Excel and open the book, a opopup form asks you for
a date range. Once you enter a valid date range, I query
SQL Server and extract the proper data and return it to
RawData sheet. The number of columns remains the same but
the rows can be from none to thousands.

My question is how can I setup the Chart sheet to handle

the changing dataset ?

I'm an excellent VB programmer but cannot figure out the

proper object to use to manage the chart and data.

Thanks to all and happy holidays.

Craig







.

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
Copying Charts While Changing Source Data David Haley Charts and Charting in Excel 8 August 2nd 07 04:50 PM
Changing many charts in one worksheet Libby Charts and Charting in Excel 1 June 4th 07 10:23 PM
Why won't my pie charts update with changing data? Wiko Charts and Charting in Excel 3 November 10th 06 05:26 PM
How can I stop charts from refreshing when changing source data? Jens Rauff Charts and Charting in Excel 0 June 22nd 06 08:30 AM
copying workbooks with charts and changing data uriel78 Charts and Charting in Excel 1 March 11th 05 02:00 AM


All times are GMT +1. The time now is 03:10 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"