I\'m looking for an alternative to this code, but using numbers. I want to select 5 columns, the start column is a variable, and then it selects 5 columns from this
code
you can use range with cells to get the effect you want (but it would be better not to use select if you don't have to)
range
cells
For n = 1 to 5 range(cells(1,n).entirecolumn,cells(1,n+4).entirecolumn).Select do sth next n