ultratch47
Board Regular
- Joined
- Aug 6, 2002
- Messages
- 126
here is macro:
Range("C12").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[-11]C[3]"
Range("D12").Select
ActiveCell.FormulaR1C1 = "=(Sheet3)!R[-11]C[2]"
Range("B14").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[-13]C[6]"
Range("B15").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[-14]C[7]"
the sheet3 in parenthesis will not compute,i would like to reference the 3rd sheet in the workbook, (the name of this sheet will never be the same)
how should htis be written correctly to refer to Sheet3?
here are my sheet names:
Sheet1 (sheet1)
Sheet2 (sheet2)
Sheet3 (test)
thanks
Range("C12").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[-11]C[3]"
Range("D12").Select
ActiveCell.FormulaR1C1 = "=(Sheet3)!R[-11]C[2]"
Range("B14").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[-13]C[6]"
Range("B15").Select
ActiveCell.FormulaR1C1 = "=Sheet1!R[-14]C[7]"
the sheet3 in parenthesis will not compute,i would like to reference the 3rd sheet in the workbook, (the name of this sheet will never be the same)
how should htis be written correctly to refer to Sheet3?
here are my sheet names:
Sheet1 (sheet1)
Sheet2 (sheet2)
Sheet3 (test)
thanks