+ Reply to Thread
Results 1 to 3 of 3

VBA - Opening a workbook on a network

  1. #1
    Forum Contributor thompsy121's Avatar
    Join Date
    09-25-2008
    Location
    Newcastle upon Tyne - UK
    MS-Off Ver
    Office 365
    Posts
    119

    VBA - Opening a workbook on a network

    Hi All,

    As above i have a macro which opens a workbook which is on a network drive. This works fine for my multiple users...however i have discovered that if they do not have the drived mapped with the same drive letter at the start...it will throw up an error advsing that the file does not exist.

    Is there any way to by pass this.

    Ex - "TestFile.xls"

    File is stored in "E:\Network\Team1\Testfile.xls"

    However, some users have access to this file and it is mapped as E:, but some users have been mapped as F: The advisors who have been mapped as F: cannot access the file.

    Is the VBA/Macro smart enough to bypass the drive letter and just search the rest of the past...Network\Team1\Testfile.xls".

    Many Thanks
    Last edited by thompsy121; 09-30-2009 at 06:57 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: VBA - Opening a workbook on a network

    If you only have two mappings why not just check for the existing of the file before openning it.

    Please Login or Register  to view this content.
    Or if you know the server name, obviously replace <servername> with actual name.
    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor thompsy121's Avatar
    Join Date
    09-25-2008
    Location
    Newcastle upon Tyne - UK
    MS-Off Ver
    Office 365
    Posts
    119

    Re: VBA - Opening a workbook on a network

    Thanks for that,

    Found out the server name and it works a treat. Saves me re-mapping about 100+ computers.

    Many Thanks again


+ 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