Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 17
Default VBA to automatically change source data for existing chart

I have a spreadsheet that totals errors for every employee daily and then
sums them by month and year to date. Instead of having 13 charts (1 for each
month and a ytd), I have created a combobox with a list of the months and ytd
and would like to have 1 chart that would change its source data based on the
month that is selected.

The problem I think I am having is setting the range. The numbers are in a
row, but not consective...so January's data is all row 28 but the columns are
D, G, J, M, P, S, V. I am not sure, but because of this I don't know if I
can use:

ActiveChart.SetSourceData Source:=Sheets("Totals").Range("D28", "G28", etc. )

Thank You for any help.
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
VBA to automatically change source data for existing chart ETLahrs Charts and Charting in Excel 3 April 21st 08 09:27 PM
Change source data in a pivot chart johnb Charts and Charting in Excel 4 September 12th 07 04:40 PM
How do I create charts that change source data automatically? cbalster Charts and Charting in Excel 0 May 26th 06 08:19 PM
Add source data to an existing chart? navychef Charts and Charting in Excel 2 December 22nd 05 11:22 PM
How do I automatically update chart source data links for moved fi Suzuki7 Charts and Charting in Excel 2 February 15th 05 03:55 AM


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