Excel VBA - How to enter a reference to another sheet?
"deko" wrote in message
...
I think I was making it more complicated than it needed to be. This seems
to do the trick:
xlapp.Workbooks(strXlsFile).Worksheets(1).Cells(i + 1, 2) = _
xlapp.Workbooks(strXlsFile).Worksheets(sn(i)).Rang e("A" &
lr)
One problem with this is that you are now setting the cell to a value, not a
formula, so if the underlying values get updated, your summary sheet does
not.
|