Gingertrees
Well-known Member
- Joined
- Sep 21, 2009
- Messages
- 697
There are a lot of posts out here about this, but none that quite answered my question.
I have a worksheet that gets a row added to it daily with the date and other data. There is also a chart based on this sheet; currently I'm manually changing it's source data daily to reflect the new row. There's got to be a way to do that with VBA, right?
Sample data:
Date Boy Cat Dog Elf Fnogph Gnogph Hot
11/9 281 540 32 353 3422 181 3241
11/10 220 336 10 234 3758 191 3567
11/11 245 210 7 268 3968 198 3770
11/12 835 502 45 599 4470 243 4227
11/15 1235 606 22 1223 5076 265 4811
11/16 1323 398 75 2140 5474 340 5134
11/17 2302 567 88 3826 6041 428 5613
Currently, the chart source data is
='Sheet1'!$A$1:$E$12,'Sheet1'!$H$1:$H$12
and then tomorrow it'll be
='Sheet1'!$A$1:$E$13,'Sheet1'!$H$1:$H$13
and Friday it'll be
='Sheet1'!$A$1:$E$14,'Sheet1'!$H$1:$H$14
(etc)
NOTE: Cannot use dynamic named range, as some users here still have Office 2000
I have a worksheet that gets a row added to it daily with the date and other data. There is also a chart based on this sheet; currently I'm manually changing it's source data daily to reflect the new row. There's got to be a way to do that with VBA, right?
Sample data:
Date Boy Cat Dog Elf Fnogph Gnogph Hot
11/9 281 540 32 353 3422 181 3241
11/10 220 336 10 234 3758 191 3567
11/11 245 210 7 268 3968 198 3770
11/12 835 502 45 599 4470 243 4227
11/15 1235 606 22 1223 5076 265 4811
11/16 1323 398 75 2140 5474 340 5134
11/17 2302 567 88 3826 6041 428 5613
Currently, the chart source data is
='Sheet1'!$A$1:$E$12,'Sheet1'!$H$1:$H$12
and then tomorrow it'll be
='Sheet1'!$A$1:$E$13,'Sheet1'!$H$1:$H$13
and Friday it'll be
='Sheet1'!$A$1:$E$14,'Sheet1'!$H$1:$H$14
(etc)
NOTE: Cannot use dynamic named range, as some users here still have Office 2000