referencing cell via another cell
If Sheet1 cell A1 contains:
=Sheet2!A15
then in VBA
Sub qwerty()
x = Sheets("Sheet1").Range("A1").Value
MsgBox (x)
End Sub
will display the value in Sheet1 cell A1 (which is also the value in Sheet2
cell A15)
--
Gary''s Student - gsnu200728
"ll" wrote:
I'm currently working on referencing a cell in anther sheet which
contins the value I need for comparison.
In other words, Cell A1 on Sheet 1 is equal to Sheet 2, Cell A15. In
my VBA code, I am needing to refer to Cell A1 of Sheet 1 to find the
value of the cell to which it refers. Is this possible?
Thanks
Louis
|