+ Reply to Thread
Results 1 to 2 of 2

Pivot Table through Scheduled Task

  1. #1

    Pivot Table through Scheduled Task

    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


  2. #2
    Ed Ferrero
    Guest

    Re: 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
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1