+ Reply to Thread
Results 1 to 3 of 3

modify macro to automatic save pdf file

  1. #1
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Austria
    MS-Off Ver
    Excel 2016
    Posts
    165

    modify macro to automatic save pdf file

    Hi everyone,
    I have a macro that creates a pdf file. Everything works great. But I have a macro that creates a lot of pdf files and I always have to press enter at the save as dialog. Is there a way to automatic save the files?
    Here is my code:

    Please Login or Register  to view this content.
    Thansk a lot
    Kind regards

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: modify macro to automatic save pdf file

    Hi,

    If you simply want to use the suggested file name, you do not require the GetSaveAsFilename call
    Please Login or Register  to view this content.
    I do not see how the line vntFile.SaveAs could work at all.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Contributor
    Join Date
    06-05-2013
    Location
    Austria
    MS-Off Ver
    Excel 2016
    Posts
    165

    Re: modify macro to automatic save pdf file

    Hy xinitwit
    Thanks for your answer. I found this macro. Looks like it works too
    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. Replies: 1
    Last Post: 06-20-2017, 10:28 AM
  2. Modify VBA to save attachment with Subject line as file name??
    By dwhite30518 in forum Outlook Formatting & Functions
    Replies: 2
    Last Post: 02-27-2017, 11:32 AM
  3. Modify Current VBA Which i Use To Save Excel 2010 File to CSV
    By magnum4u in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-07-2013, 10:39 AM
  4. [SOLVED] automatic name in 'save as dialog box' ok, but does not actually save the file?!
    By Pluym in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-02-2012, 10:05 AM
  5. Macro that open, read, modify and save a text file
    By cabinder in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2012, 11:03 AM
  6. Modify macro to save with current file name and date
    By rockhunter in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-29-2011, 03:01 AM
  7. let user select input file, modify, save
    By alanders in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2010, 06:37 PM

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