A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Charting Filtered Data - Chart not updating unless workbook is re-opened



 
 
Thread Tools Display Modes
  #1  
Old April 15th, 2004, 01:21 AM
Jessica
external usenet poster
 
Posts: n/a
Default Charting Filtered Data - Chart not updating unless workbook is re-opened

Hi there,

I have an xy chart based upon data that will then be
filtered using an advanced filter.

The filter is applied, but the chart doesn't reflect the
filtered data unless the workbook is saved & reopened.
It's maddening.

A few notes:
* I do have another workbook where this works properly.
* This is XL 2000
* The filter itself is being applied using a macro
(details below)

It's killing me that I can make this work in one workbook
and I can't get it to work in two others.

Any ideas???
Thank you!
-Jessica

Here is the entirety of the code:
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Application.Goto Reference:="calcs_page"
Application.Run "FilterData"
Sheets("Chart").Select
Application.ScreenUpdating = True
End Sub

and
Private Sub FilterData()

Range("filter_range").AdvancedFilter
Action:=xlFilterInPlace, CriteriaRange _
:=Range("Criteria"), Unique:=False

End Sub

  #3  
Old April 15th, 2004, 10:59 AM
external usenet poster
 
Posts: n/a
Default Charting Filtered Data - Chart not updating unless workbook is re-opened

Alas, I have tried calculate to no avail.

But it must be something like that, since saving and re-
opening does the trick.

Is there anything like chart.calculate (I tried that)
Thanks!
-Jessica

-----Original Message-----
Is it possible you have calculation set to manual?

Have you tried Application.Calculate after the call to

FilterData?

Also, you don't need the Application.Run "FilterData"
Just FilterData will suffice.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Business solutions leveraging technology
Microsoft Most Valuable Professional (MVP) 2000-2004

In article ,
says...
Hi there,

I have an xy chart based upon data that will then be
filtered using an advanced filter.

The filter is applied, but the chart doesn't reflect

the
filtered data unless the workbook is saved &

reopened.
It's maddening.

A few notes:
* I do have another workbook where this works properly.
* This is XL 2000
* The filter itself is being applied using a macro
(details below)

It's killing me that I can make this work in one

workbook
and I can't get it to work in two others.

Any ideas???
Thank you!
-Jessica

Here is the entirety of the code:
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Application.Goto Reference:="calcs_page"
Application.Run "FilterData"
Sheets("Chart").Select
Application.ScreenUpdating = True
End Sub

and
Private Sub FilterData()

Range("filter_range").AdvancedFilter
Action:=xlFilterInPlace, CriteriaRange _
:=Range("Criteria"), Unique:=False

End Sub


.

  #4  
Old April 15th, 2004, 12:59 PM
external usenet poster
 
Posts: n/a
Default Charting Filtered Data - Chart not updating unless workbook is re-opened

Thanks to Jon Peltier, what I needed was

Application.CalculateFull

tra la la! Thank you! : D
-----Original Message-----
Alas, I have tried calculate to no avail.

But it must be something like that, since saving and re-
opening does the trick.

Is there anything like chart.calculate (I tried that)
Thanks!
-Jessica

-----Original Message-----
Is it possible you have calculation set to manual?

Have you tried Application.Calculate after the call to

FilterData?

Also, you don't need the Application.Run "FilterData"
Just FilterData will suffice.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Business solutions leveraging technology
Microsoft Most Valuable Professional (MVP) 2000-2004

In article ,
says...
Hi there,

I have an xy chart based upon data that will then be
filtered using an advanced filter.

The filter is applied, but the chart doesn't reflect

the
filtered data unless the workbook is saved &

reopened.
It's maddening.

A few notes:
* I do have another workbook where this works properly.
* This is XL 2000
* The filter itself is being applied using a macro
(details below)

It's killing me that I can make this work in one

workbook
and I can't get it to work in two others.

Any ideas???
Thank you!
-Jessica

Here is the entirety of the code:
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Application.Goto Reference:="calcs_page"
Application.Run "FilterData"
Sheets("Chart").Select
Application.ScreenUpdating = True
End Sub

and
Private Sub FilterData()

Range("filter_range").AdvancedFilter
Action:=xlFilterInPlace, CriteriaRange _
:=Range("Criteria"), Unique:=False

End Sub


.

.

 




Thread Tools
Display Modes

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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:49 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.