+ Reply to Thread
Results 1 to 3 of 3

Move/rename file on mapped drive

  1. #1
    Registered User
    Join Date
    07-25-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    7

    Move/rename file on mapped drive

    I am trying to move and rename an excel template file using a macro. My code works fine when it is moving the file locally on my C: drive. However, when I try to do it on a mapped network drive I get a Path/File access error. Here is the relevant code:

    Please Login or Register  to view this content.
    I tried it both ways that are commented out - both give me the error. I have permissions to read/write in all relevant folders. What am I missing here?

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Move/rename file on mapped drive

    You have to use FileCopy when moving across drives.

    Here's another article about using Name and FileCopy.
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    07-25-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    7

    Re: Move/rename file on mapped drive

    I rewrote using FileCopy and it did the trick. Thanks.

+ 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. [SOLVED] Help with ignoring mapped drive letters
    By kidwispa in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-14-2013, 06:00 AM
  2. Upload File to a mapped drive
    By zhaype in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-07-2013, 10:50 PM
  3. Drive Letter Property not returning mapped drive letter
    By Mike_bee in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-26-2013, 02:45 PM
  4. Saving files to mapped drive
    By freekrill in forum Excel General
    Replies: 1
    Last Post: 12-04-2010, 06:48 AM
  5. ODBC from not mapped Drive
    By iancallaghan87 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-14-2007, 10:53 AM

Tags for this Thread

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