+ Reply to Thread
Results 1 to 7 of 7

Save as .pdf in two different places

  1. #1
    Registered User
    Join Date
    05-16-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    78

    Save as .pdf in two different places

    hello,

    i need your help. i have a macro code which save the open Excelfile as .pdf in the same folder as the Excelfile. This is fine.
    This is also the folder 1 in which the macro should save the .pdf.

    Please Login or Register  to view this content.
    But how is it possible to save the file also at the folder "C:\output" with the name of the "excelfile.pdf"

    thank you

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Save as .pdf in two different places

    Please Login or Register  to view this content.
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  3. #3
    Registered User
    Join Date
    05-16-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: Save as .pdf in two different places

    hello,

    sorry this is not working.

    Please Login or Register  to view this content.
    "runtime error, not saved"

  4. #4
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Save as .pdf in two different places

    you need to change this to a valid file path located on your pc

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-16-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: Save as .pdf in two different places

    it is working with this code

    Please Login or Register  to view this content.
    but now it is saved as "?????.xlsm.pdf" what i have to change to save only as "????.pdf"

    Thank you
    Last edited by bluesurger; 06-18-2014 at 07:03 AM.

  6. #6
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Save as .pdf in two different places

    try
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    05-16-2014
    Location
    Germany
    MS-Off Ver
    Excel 2010
    Posts
    78

    Re: Save as .pdf in two different places

    Thank you very much. It works.

+ 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. Adusting decimal places based on greatest number of places in a series
    By anelson87 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2022, 01:05 PM
  2. Replies: 2
    Last Post: 03-30-2012, 12:34 PM
  3. Unable to save CSV file without decimal places
    By gregp85 in forum Excel General
    Replies: 1
    Last Post: 07-04-2008, 05:10 AM
  4. [SOLVED] Save a workbook in 2 places
    By Mike Fogleman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2005, 11:05 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