I have some code that uses offset to select a column of numbers
However, I want to vary the range depending on a parameter passed to the routine.![]()
Please Login or Register to view this content.
i.e. Range("A1:A15") can vary - it may not always be A15.
Initially I naively tried
but of course that didn't work.![]()
Please Login or Register to view this content.
I tried various attempts at using Cells method, and R1C1 notation but no luck
The Cells method selects but it is always in reference to the start of the spreadsheet not the active cell.
Any suggestions?
Thanks
Bookmarks