PDA

View Full Version : [SOLVED:] Value from another workbook



gsouza
07-13-2005, 06:12 AM
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.

Bob Phillips
07-13-2005, 06:15 AM
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

gsouza
07-13-2005, 06:23 AM
Thank you I jthink you just saved my career.