LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Ed Ferrero
 
Posts: n/a
Default Pivot Table through Scheduled Task

Hi dr,

You could schedule to open a workbook and use the Workbook_Open event to run
code that updates a Pivot Table and then saves the workbook to a new file.

This is not tested, but something like;

Private Sub Workbook_Open()
Dim SNewName As String
Worksheets(1).PivotTables(1).RefreshTable
SNewName = "MyBook ver " & Now()
ThisWorkbook.Close savechanges:=True, Filename:=SNewName
End Sub

Save in the code pane for the ThisWorkbook object.

Ed Ferrero
http://edferrero.m6.net/


I have a Pivot Table that I would like to run as a scheduled task.
After the report runs, I would like to save the file as a different
name. Is this possible with Excel and scheduled tasks?? Any help
regarding this would be greatly appreciated...


Thanks in advance,
dr



 
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
Change Data In Pivot Table John Calder New Users to Excel 1 July 7th 05 10:41 PM
Pivot Table - Multiple consolidation Range tengreen Excel Worksheet Functions 1 July 1st 05 07:18 PM
Pivot table, dynamic data formula Excel GuRu Excel Discussion (Misc queries) 3 May 3rd 05 10:45 PM
Pivot Table Problems Rachel Gonsior Excel Discussion (Misc queries) 3 March 21st 05 07:24 PM
Pivot table : Excel cannot complete this task with available resou Julie Excel Worksheet Functions 0 November 5th 04 04:09 AM


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