+ Reply to Thread
Results 1 to 4 of 4

Exporting 240 sheets to PDF, prompt once for export location?

  1. #1
    Registered User
    Join Date
    09-06-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    19

    Exporting 240 sheets to PDF, prompt once for export location?

    I have two codes, not sure which is better or why, but I would like to be able to provide this VBA to anyone and them run it easily without adjusting the code. So is there a way to have a popup like a Save As would do that would allow the user to select one time where to export 240 files to?

    my two similar codes are below. I do like that the second gives you a success message.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Exporting 240 sheets to PDF, prompt once for export location?

    You could try something like this to prompt them for the location - you would add in your code where indicated. The loop just ensures no copy is attempted before the location (user input) is found to be valid.


    Please Login or Register  to view this content.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    09-06-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    19

    Re: Exporting 240 sheets to PDF, prompt once for export location?

    Thanks!

    what do I do with my code's folder path?

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    09-06-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    19

    Re: Exporting 240 sheets to PDF, prompt once for export location?

    If I literally just copy my code here, I get a compile error: user-defined type not defined.

    Please Login or Register  to view this content.

+ 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. Exporting multiple charts as PDF in a specified location
    By Marq555 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-22-2016, 10:18 AM
  2. Export to PDF - Prompt User to Specify Page # of ## to Generate
    By OxFACTOR in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-10-2014, 11:40 AM
  3. [SOLVED] Prompt For Folder And Export Worksheet As PDF
    By snapfade in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-05-2014, 05:56 PM
  4. [SOLVED] Specify export pdf file location is location workbook is saved.
    By dantray02 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2014, 01:13 PM
  5. How to prompt user for location of file to reference
    By SymphonyTomorrow in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-22-2010, 01:23 AM
  6. Database location prompt
    By pmguerra in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-19-2010, 10:37 PM
  7. Prompt User for Location of Files needed
    By futebol23 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-21-2008, 11:00 AM

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