PC Review


Reply
Thread Tools Rate Thread

Charts that are Off-Screen Disappear after update

 
 
Paul E
Guest
Posts: n/a
 
      27th Dec 2009
I have a sheet in a Workbook that holds about 21 charts. When I add data to
the workbook, I need to go into every chart and add rows to each data series
as well as the Horizontal Axis. Since this is tedious, I wrote a Macro to do
this. The Macro works great...but when I run it, any chart that is off-screen
disappears. It still exists, but the only way I can make it visible again is
to save the workbook, close it, and reopen it. I have tried to refresh the
graphs as I update them, but that hasn't fixed it.

The only fix that I have found that works is to temporarily set the Window
zoom to 10% so all the graphs are visible, update the chart ranges, then
reset the Window to the value it was when the Macro ran.

Any idea why the off-screen charts are disappearing? Any suggestions on
eliminating this issue? I'd rather run the Macro w/ ScreenUpdating off so it
will run a bit faster w/out the user seeing the zoom resets, but that defeats
the purpose.

If necessary, I can post the code.

Thanks,
Paul
 
Reply With Quote
 
 
 
 
Barb Reinhardt
Guest
Posts: n/a
 
      27th Dec 2009
Instead of writing a macro, I've used dynamic named ranges for the chart
series.

Read here about how to set up dynamic charts.

http://peltiertech.com/Excel/Charts/...hartLinks.html

If you want help with the code, you probably ought to post it.
--
HTH,

Barb Reinhardt



"Paul E" wrote:

> I have a sheet in a Workbook that holds about 21 charts. When I add data to
> the workbook, I need to go into every chart and add rows to each data series
> as well as the Horizontal Axis. Since this is tedious, I wrote a Macro to do
> this. The Macro works great...but when I run it, any chart that is off-screen
> disappears. It still exists, but the only way I can make it visible again is
> to save the workbook, close it, and reopen it. I have tried to refresh the
> graphs as I update them, but that hasn't fixed it.
>
> The only fix that I have found that works is to temporarily set the Window
> zoom to 10% so all the graphs are visible, update the chart ranges, then
> reset the Window to the value it was when the Macro ran.
>
> Any idea why the off-screen charts are disappearing? Any suggestions on
> eliminating this issue? I'd rather run the Macro w/ ScreenUpdating off so it
> will run a bit faster w/out the user seeing the zoom resets, but that defeats
> the purpose.
>
> If necessary, I can post the code.
>
> Thanks,
> Paul

 
Reply With Quote
 
Paul E
Guest
Posts: n/a
 
      27th Dec 2009
That's a great best practice and one I use for all my charts. Here's the
problem. The workbook I am using is used by hundreds of CEOs internationally.
It is made available through a CEO peer advisory group. The sheet is set up
w/ hard-coded starting points, and as users update the data, they must either
do what I'm doing or implement dynamic range names. I am going to make this
macro (VB code) available to all users. So, I need to code it to the standard
and lowest common denominator. So...in this case, I really need to solve the
problem since the graph construction an implementation of Dynamic named
ranges is outside my control.

But thanks for the suggestion!

"Barb Reinhardt" wrote:

> Instead of writing a macro, I've used dynamic named ranges for the chart
> series.
>
> Read here about how to set up dynamic charts.
>
> http://peltiertech.com/Excel/Charts/...hartLinks.html
>
> If you want help with the code, you probably ought to post it.
> --
> HTH,
>
> Barb Reinhardt
>
>
>
> "Paul E" wrote:
>
> > I have a sheet in a Workbook that holds about 21 charts. When I add data to
> > the workbook, I need to go into every chart and add rows to each data series
> > as well as the Horizontal Axis. Since this is tedious, I wrote a Macro to do
> > this. The Macro works great...but when I run it, any chart that is off-screen
> > disappears. It still exists, but the only way I can make it visible again is
> > to save the workbook, close it, and reopen it. I have tried to refresh the
> > graphs as I update them, but that hasn't fixed it.
> >
> > The only fix that I have found that works is to temporarily set the Window
> > zoom to 10% so all the graphs are visible, update the chart ranges, then
> > reset the Window to the value it was when the Macro ran.
> >
> > Any idea why the off-screen charts are disappearing? Any suggestions on
> > eliminating this issue? I'd rather run the Macro w/ ScreenUpdating off so it
> > will run a bit faster w/out the user seeing the zoom resets, but that defeats
> > the purpose.
> >
> > If necessary, I can post the code.
> >
> > Thanks,
> > Paul

 
Reply With Quote
 
Paul E
Guest
Posts: n/a
 
      27th Dec 2009
PS...another problem that we would have if I could get the hundreds of users
worldwide to use Dynamic named ranges is that the columns that are being used
in graphs are columns w/ formulas. So, when the sheet is set up, the formulas
are pasted forward for years so the end-users simply have to add raw data to
the column to the left of the running totals column. So you don't have empty
cells beyond the ones that are being graphed.

"Barb Reinhardt" wrote:

> Instead of writing a macro, I've used dynamic named ranges for the chart
> series.
>
> Read here about how to set up dynamic charts.
>
> http://peltiertech.com/Excel/Charts/...hartLinks.html
>
> If you want help with the code, you probably ought to post it.
> --
> HTH,
>
> Barb Reinhardt
>
>
>
> "Paul E" wrote:
>
> > I have a sheet in a Workbook that holds about 21 charts. When I add data to
> > the workbook, I need to go into every chart and add rows to each data series
> > as well as the Horizontal Axis. Since this is tedious, I wrote a Macro to do
> > this. The Macro works great...but when I run it, any chart that is off-screen
> > disappears. It still exists, but the only way I can make it visible again is
> > to save the workbook, close it, and reopen it. I have tried to refresh the
> > graphs as I update them, but that hasn't fixed it.
> >
> > The only fix that I have found that works is to temporarily set the Window
> > zoom to 10% so all the graphs are visible, update the chart ranges, then
> > reset the Window to the value it was when the Macro ran.
> >
> > Any idea why the off-screen charts are disappearing? Any suggestions on
> > eliminating this issue? I'd rather run the Macro w/ ScreenUpdating off so it
> > will run a bit faster w/out the user seeing the zoom resets, but that defeats
> > the purpose.
> >
> > If necessary, I can post the code.
> >
> > Thanks,
> > Paul

 
Reply With Quote
 
Paul E
Guest
Posts: n/a
 
      27th Dec 2009
OK...I still have my original issue, but with respects to the note I posted
in regards to the formulas in the columns to be mapped...if I had control
over everyone's spreadsheets, I would set a conditional in the formula that
would hold the cell = "" if the raw data cell was empty. But, again, this is
something over which I have no control...so still have to solve the "case of
the disappearing charts!" :-)

"Paul E" wrote:

> PS...another problem that we would have if I could get the hundreds of users
> worldwide to use Dynamic named ranges is that the columns that are being used
> in graphs are columns w/ formulas. So, when the sheet is set up, the formulas
> are pasted forward for years so the end-users simply have to add raw data to
> the column to the left of the running totals column. So you don't have empty
> cells beyond the ones that are being graphed.
>
> "Barb Reinhardt" wrote:
>
> > Instead of writing a macro, I've used dynamic named ranges for the chart
> > series.
> >
> > Read here about how to set up dynamic charts.
> >
> > http://peltiertech.com/Excel/Charts/...hartLinks.html
> >
> > If you want help with the code, you probably ought to post it.
> > --
> > HTH,
> >
> > Barb Reinhardt
> >
> >
> >
> > "Paul E" wrote:
> >
> > > I have a sheet in a Workbook that holds about 21 charts. When I add data to
> > > the workbook, I need to go into every chart and add rows to each data series
> > > as well as the Horizontal Axis. Since this is tedious, I wrote a Macro to do
> > > this. The Macro works great...but when I run it, any chart that is off-screen
> > > disappears. It still exists, but the only way I can make it visible again is
> > > to save the workbook, close it, and reopen it. I have tried to refresh the
> > > graphs as I update them, but that hasn't fixed it.
> > >
> > > The only fix that I have found that works is to temporarily set the Window
> > > zoom to 10% so all the graphs are visible, update the chart ranges, then
> > > reset the Window to the value it was when the Macro ran.
> > >
> > > Any idea why the off-screen charts are disappearing? Any suggestions on
> > > eliminating this issue? I'd rather run the Macro w/ ScreenUpdating off so it
> > > will run a bit faster w/out the user seeing the zoom resets, but that defeats
> > > the purpose.
> > >
> > > If necessary, I can post the code.
> > >
> > > Thanks,
> > > Paul

 
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
PPT Charts Disappear Maura Guerrero Microsoft Powerpoint 2 10th Dec 2009 08:27 PM
My charts disappear when I save to PDF PabloBlanco Microsoft Excel Charting 1 20th Nov 2009 10:08 AM
why do my column charts disappear OrgLeadDog Microsoft Excel Charting 2 24th Jun 2009 04:12 AM
Imported charts disappear sylvainpellletier@gmail.com Microsoft Powerpoint 3 19th Oct 2006 10:05 PM
Charts disappear? =?Utf-8?B?RGFu?= Microsoft Excel Charting 4 5th Mar 2004 05:11 PM


Features
 

Advertising
 

Newsgroups
 


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