+ Reply to Thread
Results 1 to 3 of 3

Open Workbook from cell value

  1. #1
    Registered User
    Join Date
    08-27-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    26

    Open Workbook from cell value

    Hello all,

    I'm still new to VBA, so don't really understand the last post about this.
    say that in Sheet1 ( i renamed it to "Input Data") contain data in 2 cell :
    Q5 = 08-AUG-2009
    Q6 = 30
    I want to use this cell to look up a folder name i.e:
    "Z:\Shift ProdSouth\COMBINED LOGS 2009\08-AUG-2009\30"
    and use the code below, but didn't work. Could you plz help me with this

    Please Login or Register  to view this content.
    Thanks in advance
    Miners

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    re: Open Workbook from cell value

    Hello miners,

    The Workbook.Open statement requires the name of the workbook to open, like "Reports.xls". If the path isn't supplied, the current directory is used. You supplied the path but not the workbook name.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    08-27-2009
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    26

    re: Open Workbook from cell value

    ofcourse, thanks Ross
    it works now

+ 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