Results 1 to 2 of 2
  1. #1
    Roxanne is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2011
    Posts
    2

    Export PivotTable query in Excel pivot table


    Hello
    I have a query in Access 2007 saved as PivotTable. I would like to export this pivot table to Excel and keep its pivot table format. The name of the query is RN-pivot.
    I tried to create a button that will run the query and export it to Excel. I tried this code in the Click event of the button, but something is missing...Can anyone please help.

    DoCmd.OpenQuery "RN-pivot", acViewPivotTable, acReadOnly
    PivotTable.Export "RN-pivot", plExportActionOpenInExcel

    thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,816
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Exporting from a Access Table to Excel PivotTable
    By runthis457 in forum Import/Export Data
    Replies: 2
    Last Post: 02-12-2011, 09:06 PM
  2. Export Access '07 Pivot Tbl to Excel'07
    By nagiese in forum Import/Export Data
    Replies: 1
    Last Post: 02-08-2011, 08:19 AM
  3. Export Pivot table to Excel Error
    By Whalen16 in forum Import/Export Data
    Replies: 3
    Last Post: 09-30-2010, 12:54 PM
  4. Export Access Pivot Table to Excel
    By graviz in forum Programming
    Replies: 1
    Last Post: 11-13-2009, 07:30 AM
  5. Pivot table graph form export to powerpoint
    By maati1980 in forum Forms
    Replies: 0
    Last Post: 10-22-2009, 02:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums