F
Francis Hookam
It's probably obvious and I've just missed it!
Visual basic
Using variables, in this case RowNumber and ColNumber, I should like to
check whether or not the sum of the values in the following = 45
Range(Cells(RowNumber, ColNumber), Cells(RowNumber, ColNumber + 8))
Ditto
Range(Cells(RowNumber, ColNumber), Cells(RowNumber + 2, ColNumber + 2))
I am not sure what is the Visual Basic equivalent of the worksheet
=if(sum(R2C2:R2C10)=45,"Yes","No")
and
=if(sum(R2C2:R4C4)=45,"Yes","No")
(in the macro "Yes" and "No" will be some action, as yet not determined)
Please show me how
Francis Hookham
Visual basic
Using variables, in this case RowNumber and ColNumber, I should like to
check whether or not the sum of the values in the following = 45
Range(Cells(RowNumber, ColNumber), Cells(RowNumber, ColNumber + 8))
Ditto
Range(Cells(RowNumber, ColNumber), Cells(RowNumber + 2, ColNumber + 2))
I am not sure what is the Visual Basic equivalent of the worksheet
=if(sum(R2C2:R2C10)=45,"Yes","No")
and
=if(sum(R2C2:R4C4)=45,"Yes","No")
(in the macro "Yes" and "No" will be some action, as yet not determined)
Please show me how
Francis Hookham