Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
CM CM is offline
external usenet poster
 
Posts: 136
Default omit dialog box display during pivot table refresh (macro)

I am using the following to refresh a pivot table:

Sheets("Summaries").PivotTables("PivotTable2").Piv otCache.Refresh

This works properly; however if the table is receiving addtional rows during
the refresh, it displays a question asking the user if they want to update
the table (duh, yes we do).

How can I eliminate this dialog box?

cm
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default omit dialog box display during pivot table refresh (macro)

try
Application.DisplayAlerts = False

"cm" wrote:

I am using the following to refresh a pivot table:

Sheets("Summaries").PivotTables("PivotTable2").Piv otCache.Refresh

This works properly; however if the table is receiving addtional rows during
the refresh, it displays a question asking the user if they want to update
the table (duh, yes we do).

How can I eliminate this dialog box?

cm

  #3   Report Post  
Posted to microsoft.public.excel.programming
CM CM is offline
external usenet poster
 
Posts: 136
Default omit dialog box display during pivot table refresh (macro)

Patrick,
That was not successful. The message says exactly "Do you want to replace
the contents of the destination cells in Summaries?"

Any other ideas?

cm


"Patrick Molloy" wrote:

try
Application.DisplayAlerts = False

"cm" wrote:

I am using the following to refresh a pivot table:

Sheets("Summaries").PivotTables("PivotTable2").Piv otCache.Refresh

This works properly; however if the table is receiving addtional rows during
the refresh, it displays a question asking the user if they want to update
the table (duh, yes we do).

How can I eliminate this dialog box?

cm

  #4   Report Post  
Posted to microsoft.public.excel.programming
CM CM is offline
external usenet poster
 
Posts: 136
Default omit dialog box display during pivot table refresh (macro)

I;m not sure what happened the first time, but it seems to be working now.
Thanks a bunch.

cm

"Patrick Molloy" wrote:

try
Application.DisplayAlerts = False

"cm" wrote:

I am using the following to refresh a pivot table:

Sheets("Summaries").PivotTables("PivotTable2").Piv otCache.Refresh

This works properly; however if the table is receiving addtional rows during
the refresh, it displays a question asking the user if they want to update
the table (duh, yes we do).

How can I eliminate this dialog box?

cm

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default omit dialog box display during pivot table refresh (macro)

Be sure you have turned Alerts back on when you're. Otherwise, the
user may not get messages that he should.

Application.DisplayAlerts = False
' your code
Application.DisplayAlerts = True

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

On Thu, 17 Sep 2009 09:45:02 -0700, cm
wrote:

I;m not sure what happened the first time, but it seems to be working now.
Thanks a bunch.

cm

"Patrick Molloy" wrote:

try
Application.DisplayAlerts = False

"cm" wrote:

I am using the following to refresh a pivot table:

Sheets("Summaries").PivotTables("PivotTable2").Piv otCache.Refresh

This works properly; however if the table is receiving addtional rows during
the refresh, it displays a question asking the user if they want to update
the table (duh, yes we do).

How can I eliminate this dialog box?

cm



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
Macro to Auto-refresh a pivot table Maggie Excel Programming 9 March 31st 09 05:30 PM
Run macro on refresh data (pivot table) J.W. Aldridge Excel Programming 0 December 28th 06 03:49 PM
pivot table refresh macro kraway Excel Discussion (Misc queries) 2 November 14th 06 02:38 PM
Refresh a pivot table then apply a macro [email protected] Excel Programming 0 October 24th 06 06:44 AM
Timing of automatic query refresh and macro pivot table refresh dutty Excel Programming 2 December 1st 04 07:19 PM


All times are GMT +1. The time now is 12:43 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"