+ Reply to Thread
Results 1 to 2 of 2

Use cell value to refer to Workbook

  1. #1
    Registered User
    Join Date
    12-05-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    60

    Use cell value to refer to Workbook

    Dear,

    In Cell B5 I have stored a file location ( C:\Users\jeroen\Documents\download.xlsx)

    My VBA code should extract that string and use it to open the specified document and paste some other codes in that document.

    Set wb1 = Application.Workbooks.Open(B5)

    Doesn't work (as you now can imagine, I'm pretty new working with VBA)

    Many thanks for your help
    Kind regards,

    Jeroen

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Use cell value to refer to Workbook

    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 7
    Last Post: 08-08-2014, 11:01 AM
  2. [SOLVED] How to refer to the workbook where the macro when another workbook is open during runtime?
    By jonelamora in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-04-2012, 11:21 PM
  3. refer to cell in another workbook with variable sheet name
    By wonderdunder in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-15-2011, 04:23 AM
  4. Refer a cell with different workbook - lil Tricky...
    By legendkiller420 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-20-2010, 10:26 AM
  5. When writing a macro in excel workbook, how do I refer to ea cell
    By Diana Bartz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2005, 05:05 PM

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