I need to select a range of cells from (1,1) to (i,8), where i is variable computed during the execution of my VBA routine.
Microsoft documentation (and my book) shows a way you can select the cells if the co-ordinates are hard-coded, e.g. range("a2:b3").select
However, how do you do that if you have a variable? I will need to convert i to an alphabet. Fine if i is less than 26, what if it is more?
I also tried range((1,1),(i,8)).select but that returned a syntax error.
Does anybody know the right way to get round it? Many thanks.
Microsoft documentation (and my book) shows a way you can select the cells if the co-ordinates are hard-coded, e.g. range("a2:b3").select
However, how do you do that if you have a variable? I will need to convert i to an alphabet. Fine if i is less than 26, what if it is more?
I also tried range((1,1),(i,8)).select but that returned a syntax error.
Does anybody know the right way to get round it? Many thanks.