Thread
:
reference cells in 2 sep files
View Single Post
#
1
Posted to microsoft.public.excel.programming
Chip Pearson
external usenet poster
Posts: 7,247
reference cells in 2 sep files
John,
Use something like
Worksheets("Sheet1").Cells(i,j).Value = _
Workbooks("Book2.xls").Worksheets("Sheet2").Cells( i,j).Value
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com
"John" wrote in message
...
Hi all,
i wish to popolate cell(i,j) in one Excel File with values
from a sheet inanother Excel File.
e.g.
sheets("Sheet1").cells(i,j) = Sheets("Sheet2").cells(i,j)
but how do i refer to cells in a different file altogether?
i've tried this (but it doesn't work!)
Sheets("Sheet1).cells(i,j) = Windows("FileA.xls").Sheets
("Sheet1").cells(i,j)
TIA,
John.
Reply With Quote
Chip Pearson
View Public Profile
Find all posts by Chip Pearson