LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
bz bz is offline
external usenet poster
 
Posts: 16
Default VBA and Pivot Table Refresh

"alondon" wrote in
:

Folks,

I posted this question about 3 weeks ago but got no response - probably
because I didnt make it clear what the problem was.

I need to build a very complex report using on about 30,000 records
using Pivot Tables. I got everything to work UNTIL I tried selecting
(and de-selecting) items within a field. Each time a field is set
(Include or Do Not Include) using VBA, the Pivot Table recomputes.

Depending on the month selected by the user, I need to set 12 items in
the MONTH field to True(include) or False (don't include). But, I don't
want the Pivot Table to refresh for each change as it takes about 10
seconds each time. I want to make the 12 changes, then refresh the
table - the same way it works when making changes on the screen in
Excel.

I have already tried .Pivot.EnableRefresh = False - that only turns off
manual refresh. I tried placing multiple items in a .PivotItems
statement (e.g. .PivotItems("10/1/2007", "11/1/2007").Visible = True),
but only a single argument is allowed.

Bummer! I am was so close to creating something really cool. What am I
overlooking here? Anybody have any ideas?


Have you tried
Application.EnableEvents = False
.... do your things
Application.EnableEvents = True




--
bz

please pardon my infinite ignorance, the set-of-things-I-do-not-know is an
infinite set.

remove ch100-5 to avoid spam trap
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
slow document / pivot table refresh and pivot function Justin Larson[_2_] Excel Discussion (Misc queries) 1 April 2nd 09 06:41 PM
Create refresh button in worksheet to refresh Pivot Table Data Ron Excel Worksheet Functions 1 October 13th 07 01:20 AM
refresh a new worsheet on pivot table refresh [email protected] Excel Worksheet Functions 0 February 9th 07 07:39 PM
Timing of automatic query refresh and macro pivot table refresh dutty Excel Programming 2 December 1st 04 07:19 PM
Pivot Table REFRESH Flaw -- Saves Old Data in Selection Area AFTER REFRESH Ken Roberts Excel Programming 3 September 11th 03 06:02 AM


All times are GMT +1. The time now is 09:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"