+ Reply to Thread
Results 1 to 4 of 4

VBA path issue

  1. #1
    Registered User
    Join Date
    11-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Unhappy VBA path issue

    Please Login or Register  to view this content.
    Above script running, will be asked to open an excel to update values, Cells(Target.Row, 4) = "=VLOOKUP(" & Target.Address & ", 'strPath'!$C:$H,5,0)"
    the value of the strPath already is \\Server\test\[WSO_Record.xls]Record
    But still need to manually specify an EXCEL file to update source, why?

    If I put the direct network path to the script, it running well Cells(Target.Row, 4) = "=VLOOKUP(" & Target.Address & ", '\\Server\test\[WSO_Record.xls]Record'!$C:$H,5,0)"
    Or put my computer path also no problem Cells(Target.Row, 4) = "=VLOOKUP(" & Target.Address & ", 'D:\test\[WSO_Record]Record'!$C:$H,5,0)"


    Moderator's Note: Welcome to the forum, you have to put code tags around your code. Selct the code then hit the "#" symbol. I'll do it for you now. Thank you.
    Last edited by vlady; 11-22-2012 at 11:08 PM. Reason: code tags

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: VBA path issue

    Try this.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-22-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: VBA path issue

    it's work fine, thank you

    Quote Originally Posted by haripopuri View Post
    Try this.
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: VBA path issue

    Glad I could help. Please update the status of thread as [solved]

+ 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