+ Reply to Thread
Results 1 to 4 of 4

Macro "save file to folder" to work on co-workers laptops

  1. #1
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Macro "save file to folder" to work on co-workers laptops

    I have a workbook, which saves pdf's to a folder created when first open workbook on the laptop. Problem is, how do I change or make generic the folder location so that this workbook and macro's will work on a dozen different laptops? Here is the code I am using.

    This is the code to setup the folder
    Please Login or Register  to view this content.
    This is one of the macro's which save the workbook as a pdf in that folder above. The "David" is Savefolder is what needs to change for each user or somehow be "universal" to work on all laptops. I tried **, but it looks for a folder with that in it.

    Please Login or Register  to view this content.
    Thanks for any help provided!

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Macro "save file to folder" to work on co-workers laptops

    Try

    Please Login or Register  to view this content.
    多么想要告诉你 我好喜欢你

  3. #3
    Forum Contributor
    Join Date
    08-22-2009
    Location
    Manitoba
    MS-Off Ver
    Office 2010
    Posts
    524

    Re: Macro "save file to folder" to work on co-workers laptops

    Tanks millz! Looks like your suggestion works. I also found ThisWorkbook.Path on the forums, which also seems to work, at least comparing between my home and work computers. I am very new to macros, so I am thinking your version is better!

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Macro "save file to folder" to work on co-workers laptops

    You are welcome.

    ThisWorkbook.Path will work just as fine if you always place the workbook in the correct folder before running it.

+ 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. function to list which workers "work" during given timeslot in a schedule
    By mtabrah in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-11-2014, 08:31 PM
  2. Macro needed to open "File Save As" and change save file type
    By blainerhett in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2014, 02:40 PM
  3. [SOLVED] Script to save to folder in "v:\dept2", confirm file saved, then delete from "v:\dept1"
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2014, 11:42 AM
  4. Problem running "Save macro to all workbook in folder"
    By calvinle in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2014, 12:49 AM
  5. [SOLVED] "Save as" will not work when trying to save a document in a folder
    By Ernest in forum Excel General
    Replies: 1
    Last Post: 04-13-2006, 01:48 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