MyFlight
Technical User
- Feb 4, 2002
- 193
Is there a simple way to run code on Multiple worksheets?
I have a workbook with 12 worksheets in it.
One worksheet named Sheet1, the rest are Named:
"Hardware", "Hardware (2)", "Hardware (3)", etc..
I need to run the following on each of the HARDWARE tabs:
Range("N1").FormulaR1C1 = "=SUM(R[1]C:R[500]C)"
Range("O1").FormulaR1C1 = "=SUM(R[1]C:R[500]C)"
Range("P1").FormulaR1C1 = "=SUM(R[1]C:R[500]C)"
Range("Q1").FormulaR1C1 = "=SUM(R[1]C:R[500]C)"
Range("S1").FormulaR1C1 = "=SUM(R[1]C:R[500]C)"
Range("T1").FormulaR1C1 = "=SUM(R[1]C:R[500]C)"
Range("U1").FormulaR1C1 = "=SUM(R[1]C:R[500]C)"
Range("V1").FormulaR1C1 = "=SUM(R[1]C:R[500]C)"
Any suggestions?
I have a workbook with 12 worksheets in it.
One worksheet named Sheet1, the rest are Named:
"Hardware", "Hardware (2)", "Hardware (3)", etc..
I need to run the following on each of the HARDWARE tabs:
Range("N1").FormulaR1C1 = "=SUM(R[1]C:R[500]C)"
Range("O1").FormulaR1C1 = "=SUM(R[1]C:R[500]C)"
Range("P1").FormulaR1C1 = "=SUM(R[1]C:R[500]C)"
Range("Q1").FormulaR1C1 = "=SUM(R[1]C:R[500]C)"
Range("S1").FormulaR1C1 = "=SUM(R[1]C:R[500]C)"
Range("T1").FormulaR1C1 = "=SUM(R[1]C:R[500]C)"
Range("U1").FormulaR1C1 = "=SUM(R[1]C:R[500]C)"
Range("V1").FormulaR1C1 = "=SUM(R[1]C:R[500]C)"
Any suggestions?