Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Automatic Refresh Question

I have a pivot table that pulls from an outside data source, when you
open up the file it always asks you if you want to "ENABLE AUTOMATIC
REFRESH". Is there any way to code this so it will automatically
refresh without asking the user? Maybe by setting up an on open macro
that would select the option to refresh for the user.

Thanks,
Steve

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 116
Default Automatic Refresh Question

Sub Workbooks_Open
Application.DisplayAlerts = False
ActiveSheet.PivotTables("YourPivotTableName").Pivo tCache.Refresh
Application.DisplayAlerts = True
End Sub

Or, change ActiveSheet to Sheets("YourPivotTableSheet")

Regards,

Alan


"smonczka" wrote in message
ups.com...
I have a pivot table that pulls from an outside data source, when you
open up the file it always asks you if you want to "ENABLE AUTOMATIC
REFRESH". Is there any way to code this so it will automatically
refresh without asking the user? Maybe by setting up an on open macro
that would select the option to refresh for the user.

Thanks,
Steve



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Automatic Refresh Question

The 'enable automatic refresh' message can supressed by making registry
changes.

http://support.microsoft.com/kb/248204




"smonczka" wrote:

I have a pivot table that pulls from an outside data source, when you
open up the file it always asks you if you want to "ENABLE AUTOMATIC
REFRESH". Is there any way to code this so it will automatically
refresh without asking the user? Maybe by setting up an on open macro
that would select the option to refresh for the user.

Thanks,
Steve


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Automatic Refresh Question

Suppressing the notification for this sheet would work best...

Thanks to you both for your help. This was exactly what I needed.

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 can I 'Enable Automatic Refresh' for Query Refresh by default Anand Deshpande Setting up and Configuration of Excel 0 December 10th 06 04:47 AM
Automatic Refresh Jim Excel Discussion (Misc queries) 1 September 21st 06 04:31 PM
'Enable Automatic Refresh?' Nigel Brown Setting up and Configuration of Excel 0 June 27th 06 05:22 PM
Query Refresh-Enable Automatic Refresh Dialogue Box Terri Excel Discussion (Misc queries) 0 May 6th 05 08:21 PM
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 11:45 PM.

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"