Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default pivotitems updating pivottable.... help!!!

I have a workbook containing some specific clients on sheet (1) and
a pivot Table on another sheet I need to update the Pivot Table with
only those Clients when I refresh the Pivot Table(“SpecClient”).
Example :-

Range Name (Sheet(1)!$K$3:$K$28 )

Client 104
Client 054
Client 730
Client 062

I would like to see in Pivot Table.pivot Items only clients 104,
054, 730, 062 and eventually another one should I add another client
in the existing Range. The Clients on the pivot table are on a page
field.


heres an example..

With ActiveSheet.PivotTables("SpecClient").PivotFields( "Name")
For CliName = 1 To Range Name
If cell is not empty then
.PivotItems(CliName).Visible = False
End If
Next CliName
End With

This works exactly the way i want but for one thing. The pivot table
is being updated as soon as change one of the pivotitems visible
property. This is annoying and slow. I will like to make all my
changes first then have the pivot table refreshed.

I added these 2 lines to my code...

Application.EnableEvents = False
Application.ScreenUpdating = False

but its still terribly slow....
to see what im talking about... create a pivot table... add a
pagefield.. record a new macro....select multiple items of the page
field... and stop the macro... now run the new macro... see how many
times the table is refreshed?...

can anyone help?


--
--------------------------------- --- -- -
Posted with NewsLeecher v3.9 Beta 8
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

Reply
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
Updating PivotTable SourceDate using VBA M Carman Excel Programming 0 November 26th 07 07:21 PM
PivotItems Bug?! WhytheQ Excel Programming 2 November 29th 06 04:31 PM
Addin for updating database by ammending pivottable nc Excel Discussion (Misc queries) 0 November 6th 06 08:51 AM
Adding PivotItems Geoff Excel Programming 0 April 12th 06 09:10 AM
Add PivotItems to PivotTable / Enabling - Disabling PivotItems Ole[_3_] Excel Programming 1 July 8th 03 03:24 PM


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

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

About Us

"It's about Microsoft Excel"