+ Reply to Thread
Results 1 to 2 of 2

Automation of printing in PDF a pivot table

Hybrid View

  1. #1
    Registered User
    Join Date
    08-22-2016
    Location
    MTL, CA
    MS-Off Ver
    2013
    Posts
    61

    Automation of printing in PDF a pivot table

    This would be a weekly report.

    I can already trigger an event (Windows Task) at start-up using the equivalent of a command parameter, as in MS Access.

    I need a way to automatically set the filter of my pivot table with a range of dates (...previous week) and print a PDF.

    Any inspiration would be appreciated!

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Automation of printing in PDF a pivot table

    As for setting the range of dates, I recommend using a helper column in the source data =AND(Date>=StartDate,Date<=EndDate). This will evaluate to True when the date is between the start date (first date last week) and end date (last date last week) regardless of what those dates are. Use this as a fixed filter for the pivot table and you will be spared the agony for trying to set the individual dates in the Pivot Table. Hint: Today() - Weekday (Today()) always gives last Saturday's date.

    As for printing a PDF out of it, record a macro to do that and then modify it to meet your needs.

    This is as far as I can take it without a sample workbook.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Printing Pivot Table
    By hpowell in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-16-2016, 07:35 PM
  2. Printing a Pivot Table
    By Rustin788 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-18-2015, 01:38 PM
  3. Automation of ODBC Pivot Table refresh
    By Bendaberg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2011, 11:24 AM
  4. Large Pivot Table Printing
    By pcargila in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-10-2010, 12:18 PM
  5. [SOLVED] Pivot Table Automation
    By Jonathan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2006, 04:25 PM
  6. Printing Pivot Table Pie Charts
    By sherobot in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-24-2006, 08:30 PM
  7. [SOLVED] problem with pivot table automation using perl
    By surfunbear@yahoo.com in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2006, 04:35 PM

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