PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Charting Chart data refresh & printing

Reply

Chart data refresh & printing

 
Thread Tools Rate Thread
Old 01-07-2003, 02:34 AM   #1
Bruce
Guest
 
Posts: n/a
Default Chart data refresh & printing


In an XL2000 work book, I have a drop down validation box that selects
a name from another sheet. After selection of the name, cells
alongside that validation box are updated from that other sheet. Below
is a chart that gets seems to get refreshed & redrawn with no
problems. I have even added two VB buttons to select the next or
previous name from the list, looping around at end. Once again no
problems. A second chart on the same sheet as the prevoius chart uses
the same dropdown box, this chart using different calculations. Still
no problem. Name is selected or next or previous, both charts
automatically update.

The problem:
I am trying to write code that will step through all names, refreshing
the charts, and printing out the sheet with the charts. All I get is
the name & charts currently being displayed.

Any ideas

TIA,

Bruce
  Reply With Quote
Old 01-07-2003, 04:46 PM   #2
Stephen Bullen
Guest
 
Posts: n/a
Default Re: Chart data refresh & printing

Hi Bruce,

> I am trying to write code that will step through all names, refreshing
> the charts, and printing out the sheet with the charts. All I get is
> the name & charts currently being displayed.


It might help if you included the text, but a few wild guesses might
help:

1) Are you setting calculation to Manual at the start of the code? If
so, you'll need to do ActiveWorksheet.Calculate to get the charts to
refresh.

2) Do you have ScreenUpdating turned off? It's unlikely (but I guess
possible) that the charts are not redrawing themselves because of that.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.co.uk

  Reply With Quote
Old 02-07-2003, 12:57 AM   #3
Bruce
Guest
 
Posts: n/a
Default Re: Chart data refresh & printing

Stephen Bullen <stephen@bmsltd.co.uk> wrote in message news:<VA.000000e3.00357b77@bmsltd.co.uk>...
> Hi Bruce,
> 2) Do you have ScreenUpdating turned off? It's unlikely (but I guess
> possible) that the charts are not redrawing themselves because of that.


Setting it to true worked - thanks.

Bruce
  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off