+ Reply to Thread
Results 1 to 4 of 4

VBA to enable user to select save location

  1. #1
    Registered User
    Join Date
    11-09-2016
    Location
    UK
    MS-Off Ver
    365
    Posts
    85

    VBA to enable user to select save location

    Hi all,

    I have the following code to attach a workbook to an email and send it. I want to add in a step to enable the user to save the workbook to a location of their choice. The workbook will be used by various users outwith my department/company so I can't hard code a location. I do want to hardcode the file name if possible, if not then I would want the save as box to pop up AFTER the email has been sent.

    Thanks in advance

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA to enable user to select save location

    Hello Maleficent,

    This will let you choose the folder to save the copy to. The workbook file name is still hard coded.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    11-09-2016
    Location
    UK
    MS-Off Ver
    365
    Posts
    85

    Re: VBA to enable user to select save location

    Works perfectly!! thanks so much Leith Ross

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA to enable user to select save location

    Hello Maleficent,

    You're welcome.

+ 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. VBA to prompt user to select location to save file
    By Bevg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-13-2019, 01:33 PM
  2. Save PDF to different location based on choice user
    By SjoisW in forum Word Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2017, 07:34 AM
  3. [SOLVED] User input for save location?
    By fourmurphys in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-15-2013, 03:25 PM
  4. [SOLVED] [Help]macro to open file browser, to select a location, and save the location to a cell
    By zhuleijia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2013, 09:56 AM
  5. Force user to enable macros, only work if press save
    By Blokeman in forum Excel General
    Replies: 0
    Last Post: 03-09-2013, 10:25 PM
  6. [SOLVED] Save PDF - Select file location
    By ZeDoctor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-18-2013, 11:48 AM
  7. [SOLVED] Allowing the user to specify save location
    By TimN in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-16-2006, 12:25 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