+ Reply to Thread
Results 1 to 4 of 4

Save files to a Mapped Network Drive on server

  1. #1
    Registered User
    Join Date
    02-13-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    35

    Save files to a Mapped Network Drive on server

    The following VBA is to name and save multiple files to a mapped network drive on a server. I have the code working when saving locally, however when saving to the mapped network drive, my files keep saving to a default directory rather than the specified location. I have read/write permissions for the network drive.

    Thanks in advance...

    Please Login or Register  to view this content.
    Last edited by wotsup; 03-13-2012 at 09:06 AM.

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Save files to a Mapped Network Drive on server

    Try using the full UNC name of the folder

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Save files to a Mapped Network Drive on server

    You don't need chdir.
    This is all you need (provided cells A1:A5 contain valid Workbooknames, including extensions.
    Please Login or Register  to view this content.
    Last edited by snb; 03-12-2012 at 06:52 AM.



  4. #4
    Valued Forum Contributor
    Join Date
    12-16-2004
    Location
    Canada, Quebec
    Posts
    363

    Re: Save files to a Mapped Network Drive on server

    I would go with kyle on this one
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Denis

    Please always attach the sample workbook without sensitive information when asking for help

    To add a module
    Press Alt + F11 (this is the Visual Basic Environment)
    Insert Menu, select Module
    Past code there
    Close Visual Basic Environment (X)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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