Consulting

Results 1 to 3 of 3

Thread: Value from another workbook

  1. #1
    VBAX Contributor
    Joined
    Dec 2004
    Posts
    122
    Location

    Value from another workbook

    I know this is simple but I just can't find it or remember it.
    If i have two workbooks, book1.xls and book3.xls, with vba how do I get the value from book3.xls range("a1") to be in book1.xls range("a1"). I hope someone can help me because I am stuck. Thanks in advance.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by gsouza
    I know this is simple but I just can't find it or remember it.
    If i have two workbooks, book1.xls and book3.xls, with vba how do I get the value from book3.xls range("a1") to be in book1.xls range("a1"). I hope someone can help me because I am stuck. Thanks in advance.
    As long as they are both open

    Workbook("Book1.xls").Worksheets("Sheet1").Range("A1").Value = _
        Workbooks("Book3.xls").Worksheets("Sheet1").Range("A1").Value
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Contributor
    Joined
    Dec 2004
    Posts
    122
    Location
    Thank you I jthink you just saved my career.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •