Hi.
I cannot get my head round the following.
I have defined a couple of sheets in VBA so that:
Now using the recorder I can get that if you were to group the sheets it would come up with something like this.
and it you wanted to insert a value in all of the C5 cells this would be
But how can I do this using my defined names.
Ideally I would like to be able to do somehting like this
But this is wrong and I don't know how to sort it.
Thanks in advance
G12
I cannot get my head round the following.
I have defined a couple of sheets in VBA so that:
Code:
Set wsOne = Worksheets("FirstSheet")
Set wsTwo = Worksheets("SecondSheet")
Set wsThree = Worksheets("ThirdSheet")
Code:
Sheets(Array("FirstSheet", "SecondSheet", "ThirdSheet")).Select
Code:
Sheets(Array("FirstSheet", "SecondSheet", "ThirdSheet")).Select
Sheets("FirstSheet").Activate
Range("C5").Select
ActiveCell.FormulaR1C1 = "=SUBTOTAL(9,R[5]C:R[396]C)"
But how can I do this using my defined names.
Ideally I would like to be able to do somehting like this
Code:
Sheets(Array(wsOne, wsTwo,wsThree)).Range("C5:K5").value = "=SUBTOTAL(9,R[5]C:R[396]C)"
But this is wrong and I don't know how to sort it.
Thanks in advance
G12