Getafix1066
Board Regular
- Joined
- May 15, 2016
- Messages
- 57
Hi,
I'm trying to create a summary worksheet that allows a column of data from one worksheet to be compared to the same column in a big group of worksheets. I created a macro that did this....
This does do what it says on the tin, but not quite what I intended.
After running this macro, if I look at a particular cell (i.e C66) in my summary, it's contents are "=C60/C59". This is technically correct - it's exactly what's in the cell C66 in sheet F1.
However, what I really want it to say is "='F1'!C66" - so that if the data in cell C66 on sheet ever changes them the corresponding data on the summary page will also change.
How can I do this?
Thanks
I'm trying to create a summary worksheet that allows a column of data from one worksheet to be compared to the same column in a big group of worksheets. I created a macro that did this....
Code:
'Copy column from sheet "F1" to the summary sheet Sheets("F1").Range("c2:c150").Copy
Sheets("Summary2").Range("c2:c150").Select
ActiveSheet.Paste
'Copy column from sheet "F2" to the summary sheet
Sheets("F2").Range("c2:c150").Copy
Sheets("Summary2").Range("d2:d150").Select
ActiveSheet.Paste
'Copy column from sheet "F3" to the summary sheet
Sheets("F3").Range("c2:c150").Copy
Sheets("Summary2").Range("e2:e150").Select
ActiveSheet.Paste
This does do what it says on the tin, but not quite what I intended.
After running this macro, if I look at a particular cell (i.e C66) in my summary, it's contents are "=C60/C59". This is technically correct - it's exactly what's in the cell C66 in sheet F1.
However, what I really want it to say is "='F1'!C66" - so that if the data in cell C66 on sheet ever changes them the corresponding data on the summary page will also change.
How can I do this?
Thanks