LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default Resetting chart ranges

I have a sheet that imports one or more columns of data from out MSSQL
back-end. After some minor processing the results need to be graphed. However
the "height" of the column of data that represents the values is unknown
until after the data is returned.

What is the best way to deal with this? Currently I'm trying to use:

ActiveChart.SeriesCollection(1).Values =
"='Time comparison'!R13C2:R" & dates + 12 & "C2"

However this returns errors most of the time, saying:

Unable to set the Values property of the Series class. This error is
undocumented, but it appears to happen because the range in question is empty
(which, IMHO, should not be an error). I wrapped some tests around them to
see if there were at least some values, but now it's even failing on ones
that do have data.

Any ideas? Is there some easier way to make this work?

Maury
 
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
Chart worksheet names keep resetting dloomer Charts and Charting in Excel 0 December 10th 09 05:58 PM
Problem Resetting Data Source Ranges via VBA LarryP Charts and Charting in Excel 0 August 4th 08 08:34 PM
Chart with various Y value ranges coastal Excel Discussion (Misc queries) 1 August 30th 07 12:45 PM
Multiple Ranges for a Chart Vic Charts and Charting in Excel 1 June 1st 05 04:38 PM
Multiple Ranges for a Chart Barb R. Charts and Charting in Excel 0 May 31st 05 11:52 PM


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