+ Reply to Thread
Results 1 to 4 of 4

Macro to manually choose PDF file and save it to a specific location with specific name

  1. #1
    Forum Contributor
    Join Date
    09-20-2012
    Location
    Norge
    MS-Off Ver
    Excel 2007
    Posts
    114

    Macro to manually choose PDF file and save it to a specific location with specific name

    Hello,
    I want to make a macro for a button that is to execute the following:

    1. Open dialog box so that one can manually choose a PDF file and press OK.
    2. Upon pressing OK I want it to save the chosen PDF file to a specific location and give it a specific name based on a variable (the value of a text box) and keep the extension .pdf

    I have no clue if I´m even near being on track here or not, but this is what I got so far after trying several things for a couple of hours:

    Please Login or Register  to view this content.


    Any tips on how to accomplish this?

    Thanks in advance

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro to manually choose PDF file and save it to a specific location with specific nam

    do you want copy the selected file in the new location or move it ?
    If solved remember to mark Thread as solved

  3. #3
    Forum Contributor
    Join Date
    09-20-2012
    Location
    Norge
    MS-Off Ver
    Excel 2007
    Posts
    114

    Re: Macro to manually choose PDF file and save it to a specific location with specific nam

    Hi Patel45,

    I would want to copy the selected file

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro to manually choose PDF file and save it to a specific location with specific nam

    I can not test without a samplefile, but try this
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    09-20-2012
    Location
    Norge
    MS-Off Ver
    Excel 2007
    Posts
    114

    Re: Macro to manually choose PDF file and save it to a specific location with specific nam

    This worked beautifully. Just what I wanted.

    Thank you so much patel45

+ 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: 0
    Last Post: 07-11-2013, 02:08 AM
  2. Replies: 1
    Last Post: 06-30-2013, 05:58 PM
  3. auto save to specific location using cell as file name
    By JACKBKNIMBLE in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2013, 03:26 PM
  4. Creating sequential numbers & save to specific file location
    By ajaaay in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2012, 06:19 PM
  5. save file with today's date at a specific location
    By rajasekhar28 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2009, 06:01 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