+ Reply to Thread
Results 1 to 5 of 5

Connecting two macros: Refresh pivot data then export as PDF

  1. #1
    Registered User
    Join Date
    10-08-2013
    Location
    United States, North Ameriac
    MS-Off Ver
    Excel 2010, Excel 2007, Excel 2013
    Posts
    58

    Connecting two macros: Refresh pivot data then export as PDF

    Hi all:

    I have a worksheet that has pivot data coming from an access database. I am trying to connect these two macros so that the workbook refreshes and then exports and saves the pdf. I've tried putting the export portion of the macro within the refresh, but when compiling I get the "expected end of sub" error. Any ideas? Thanks!

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486

    Re: Connecting two macros: Refresh pivot data then export as PDF

    try this:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-08-2013
    Location
    United States, North Ameriac
    MS-Off Ver
    Excel 2010, Excel 2007, Excel 2013
    Posts
    58

    Re: Connecting two macros: Refresh pivot data then export as PDF

    Hi IonutC:

    Thanks for your response, but it doesn't do anything (i.e. refresh the pivot data or export the pdf).

  4. #4
    Forum Contributor IonutC's Avatar
    Join Date
    01-28-2016
    Location
    Bucharest, Romania
    MS-Off Ver
    Office 2019
    Posts
    486
    Quote Originally Posted by onemoremile View Post
    Hi IonutC:

    Thanks for your response, but it doesn't do anything (i.e. refresh the pivot data or export the pdf).
    Hi,

    I just used your code. Pls attach your excel and will give it a try to help u.

    Cheers,
    Ionut

  5. #5
    Registered User
    Join Date
    10-08-2013
    Location
    United States, North Ameriac
    MS-Off Ver
    Excel 2010, Excel 2007, Excel 2013
    Posts
    58

    Re: Connecting two macros: Refresh pivot data then export as PDF

    Hi IonutC:

    It looks like this is working when I just use the following:

    Please Login or Register  to view this content.
    Last edited by onemoremile; 04-27-2016 at 08:06 AM.

+ 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. Code to refresh Data, wait until its done, then export to PDF
    By Invicta084 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-24-2015, 12:18 PM
  2. Macros - Unprotect/Refresh Pivot/Protect
    By luke.walker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-18-2015, 12:27 PM
  3. Replies: 4
    Last Post: 06-23-2014, 09:52 PM
  4. Auto export on data refresh
    By djjerdog in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-31-2013, 10:30 AM
  5. Connecting Pivot Table To Source Data From A Different Workbook
    By bcommando17 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-26-2012, 11:11 AM
  6. connecting macros
    By ed ayers315 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2009, 03:43 PM
  7. Connecting two macros
    By Safecracker in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-24-2009, 03:26 PM

Tags for this Thread

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