?
Solved

Refresh a Pivot Table from an access database

Posted on 2013-12-17
1
Medium Priority
?
1,142 Views
Last Modified: 2013-12-31
I have a weird problem. My access database we will call db1.accdb exports data into an excel spreadsheet.  Once the data is exported I need to be able to refresh the pivot in the spreadsheet from the access database (I'm trying to automate a process and asking people to refresh the pivot is too much :)

db1.accdb exports info into spreadsheet1.xls
spreadsheet2.xl is linked to spreadsheet1.xls to get the raw data from there
spreadsheet2.xls contains pivot1

I need to create some code in vba that when I click the Export Button in db1 will also refresh pivot1 in spreadsheet2

so bottom line creating a button in access that refreshes an external pivot table in spreadsheet2.xls

thanks in advance, hopefully I didnt make it too confusing
0
Comment
Question by:damixa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 33

Accepted Solution

by:
Rob Henson earned 2000 total points
ID: 39724584
Why not just link the Pivot in the Excel sheet directly to the access source data?

Or a query in Excel that pulls the data from Access.

Then you have a button in Excel that refreshes query and pivot.

Thanks
Rob H
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question