PC Review


Reply
Thread Tools Rate Thread

Change SourceData with ScrollBar for SheetChart Type xlColumnClust

 
 
RyanH
Guest
Posts: n/a
 
      25th Sep 2008
I have a SheetChart that has two vertical columns for each of the 17
departments that we have at our company along the X-Axis and Hours along the
Y-Axis. My SourceData is in Sheets("Summary"), Col. C represents Available
Hours and Col.D represents Scheduled Hours. I want to have the ability to
graph each of the 5 Weeks on the same SheetChart. What I would like to do is
embed a ScrollBar that would change the SourceData from Week 1 --> Week 2,
Week 2 --> Week 3, ... , Week 4 --> Future, and visa versa.

I think the best way to setup the code is to change the SourceData row
numbers as the ScrollBar Value changes. For example, ScrollBar.Value = 1
and Week 1 SourceData = Sheets("Summary").Range("C1010,C1818,C2626,
etc."), ScrollBar.Value = 2 and Week 2 SourceData = Sheets("Summary").Range
("C1111,C1919,C2727, etc."), and so on. The ScrollBar Value Min. = 1
and Max. = 5.

Col. C Col.D

Department 1 of 17:
Available Hrs Scheduled Hrs
Week 1 40 40
Week 2 80 50
Week 3 40 30
Week 4 0 0
Future 120 15

Department 2 of 17:
Available Hrs Scheduled Hrs
Week 1 40 40
Week 2 80 50
Week 3 40 30
Week 4 0 0
Future 120 15

And so on....

Note: I have Excel 2003.

Hope this explains everything! Thanks in Advance!

--
Cheers,
Ryan
 
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
Change scrollbar color Catalin Lungu Microsoft Dot NET Framework Forms 0 24th Mar 2006 01:22 PM
How to use ADO to change Pivottable sourcedata query =?Utf-8?B?Q2hhY2U=?= Microsoft Excel Programming 0 17th May 2005 06:44 PM
Scrollbar Change event junx13 Microsoft Excel Programming 0 5th Oct 2004 08:54 AM
Change SourceData in Excel PivotTable via VBA CarlsonClan Microsoft Excel Programming 1 9th Apr 2004 04:15 AM
scrollbar invalidation on change Allen Microsoft C# .NET 0 8th Jul 2003 01:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:01 AM.