+ Reply to Thread
Results 1 to 2 of 2

Windows XP : Local Drive Mapping

  1. #1
    Registered User
    Join Date
    02-13-2010
    Location
    Penzance, UK
    MS-Off Ver
    Excel 2007
    Posts
    1

    Local Drive Mapping

    In a cell, I've got

    =UPPER(IF(ISNA(MATCH($E$3,'R:\Benefits\...\[BenDatabase.xls]Sheet1'!$A$1:$A$65536,0)),"",INDEX('R:\Benefits\...\[BenDatabase.xls]Sheet1'!$B$1:$B$65536,MATCH($E$3,'R:\Benefits\...\[BenDatabase.xls]Sheet1'!$A$1:$A$65536,1),0)))

    & in VBA, I've got

    Workbooks.Open Filename:= "R:\Benefits\...\BenDatabase.xls"

    Ok when I'm in the office, but when I'm home, I want

    =UPPER(IF(ISNA(MATCH($E$3,C:\Documents and Settings\...\[BenDatabase.xls]Sheet1'!$A$1:$A$65536,0)),"",INDEX('C:\Documents and Settings\...\[BenDatabase.xls]Sheet1'!$B$1:$B$65536,MATCH($E$3,'C:\Documents and Settings\...\[BenDatabase.xls]Sheet1'!$A$1:$A$65536,1),0)))

    & Workbooks.Open Filename:= "C:\Documents and Settings\...\BenDatabase.xls"

    ie, BenDatabase.xls is in different place, depending where I am. Been told can use Map Network Drive in some way to 'make' a place on home PC which has the filepath R:\Benefits\...\...\BenDatabase.xls so I can keep the formulas & code the same wherever I am.

    Can you help?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Mapping

    From the DOS prompt:

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

+ 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