+ Reply to Thread
Results 1 to 3 of 3

Network Drives

  1. #1
    Registered User
    Join Date
    11-16-2004
    Posts
    27

    Network Drives

    I am writing a number of files for use by staff over our network. The problem I have is that the same Drive letter has not been given to all users and one file opens another by the following code:

    ChDrive "L"
    ChDir "L:\Community Dividend\New Payments\Regions"
    Workbooks.Open "Payment Details\C&E.xls", UpdateLinks:=True

    The server is called cash on 'fiesta' and I have tried changing L to this, to no avail.

    Any help greatly appreciated.

    Nick

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    Instead of changing drives, why not just use the full UNC path to the file?:

    Example:
    DIM strPath as string

    strPath = "\\Fiesta\Cash\Community Dividend\New Payments\Regions\Payment
    Details\"

    Workbooks.Open strPath & "C&E.xls", UpdateLinks:=True


    Something you can work with?

    Ron

  3. #3
    Registered User
    Join Date
    11-16-2004
    Posts
    27

    Thanks Ron

    Worked like a dream

+ 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