+ Reply to Thread
Results 1 to 5 of 5

VBA to loop through slicer option and export each to PDF

Hybrid View

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

    Re: VBA to loop through slicer option and export each to PDF

    It looks like you have a misplaced quote in there:
    "FPath & " \ " & FName & .pdf", Quality:=xlQualityStandard, _
    Try this
    FPath & " \ " & FName & ".pdf", Quality:=xlQualityStandard, _
    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.

  2. #2
    Registered User
    Join Date
    08-16-2019
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    5

    Re: VBA to loop through slicer option and export each to PDF

    I have tried different guides to make a "slicer loop to pdf export" file.. but fail before i even get started. Even with the most basic excel file possible im not able to use the macro.

    Attachment 637610

    Why does it stop on the step in the picture?

    The error message says: "Run-time error '1004': Application-defined or object-defines error

+ 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. Loop through an autofilter and export a PDF for each option
    By Paulcbanks in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2016, 04:26 PM
  2. Slicer Selection loop is very slow!
    By barowan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-04-2016, 10:09 AM
  3. Ribbon is missing slicer option
    By stephme55 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-11-2016, 06:25 PM
  4. Replies: 0
    Last Post: 09-10-2015, 08:25 AM
  5. Code to loop through pvt slicer very slow
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2014, 02:08 PM
  6. 'select all' option in slicer
    By Paul-NYS in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-24-2012, 09:23 AM

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