Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Pivot Table Events

Is there any way to run some code before a pivot table automatically updates?
Unlike query tables, there seems to be no exposed events for the pivot table
object.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Pivot Table Events

In excel 2002 and 2003 (I believe 2002 was where they were added), there are
some pivottable associated events, but they belong to the application,
workbook and worksheet objects. You can go to the object browser and search
on pivot, then scroll through the results looking for the lightning bolt
icon signifying an event.

--
Regards,
Tom Ogilvy

"Blue Aardvark" wrote in message
...
Is there any way to run some code before a pivot table automatically

updates?
Unlike query tables, there seems to be no exposed events for the pivot

table
object.

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Pivot Table Events

There seems to be 3 pivot table events. An open and close connection event
and an after update one. However, I need to capture an event before the
connection occurs.
I am querying another excel workbook and need to test if the file is open
before I connect to the source. If it is open, I am saving a copy to the
local disk and changing the connection to query the saved file instead. (All
because ADO can't cope with querying open workbooks.)
Any suggestions on how to capture the event would be appeciated.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Pivot Table Events

I would think, if there is no before update event, you would need to
eliminate any way to update the table except by using some button that you
provide (and the code associated with that button).

Worksheets(1).PivotTables("Pivot1") _
.PivotCache.EnableRefresh = False



--
Regards,
Tom Ogilvy


"Blue Aardvark" wrote in message
...
There seems to be 3 pivot table events. An open and close connection event
and an after update one. However, I need to capture an event before the
connection occurs.
I am querying another excel workbook and need to test if the file is open
before I connect to the source. If it is open, I am saving a copy to the
local disk and changing the connection to query the saved file instead.

(All
because ADO can't cope with querying open workbooks.)
Any suggestions on how to capture the event would be appeciated.



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
How do I build a calendar from an excel table of events/dates? Schedule Guy Excel Discussion (Misc queries) 1 November 13th 09 11:28 PM
How to Generate a calender of Events from data/ Pivot Table MillieDileo Excel Discussion (Misc queries) 0 May 10th 06 04:02 PM
Pivot Table Events Jim Thomlinson[_3_] Excel Programming 5 January 29th 05 01:29 PM
EXCEL PIVOT TABLES DETECTING EVENTS Gary B[_4_] Excel Programming 0 February 11th 04 01:00 AM
Excel Pivot table Events Shanmugavel Excel Programming 3 December 16th 03 07:08 AM


All times are GMT +1. The time now is 03:54 PM.

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"