Hi
I would like to do the following in my Excel VB macro
1/ Select a range using the variable name: SelectionRange
2/ write a formula in a cell as such
ActiveCell.Formula ="max(SelectionRange)"
I want to do that because it's part of a FOR loop and the SelectionRange changes at each loop. SelectionRange looks something like that: Range(Cells(1,j),Cell(1,j+5))
Any ideas if there is a way of doing such thing?
Thanks
Regards
J.B.
I would like to do the following in my Excel VB macro
1/ Select a range using the variable name: SelectionRange
2/ write a formula in a cell as such
ActiveCell.Formula ="max(SelectionRange)"
I want to do that because it's part of a FOR loop and the SelectionRange changes at each loop. SelectionRange looks something like that: Range(Cells(1,j),Cell(1,j+5))
Any ideas if there is a way of doing such thing?
Thanks
Regards
J.B.