VBA - Select columns using numbers?

前端 未结 9 2186
北荒
北荒 2021-02-05 08:06

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

9条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-05 08:39

    You can specify addresses as "R1C2" instead of "B2". Under File -> Options -> Formuals -> Workingg with Formulas there is a toggle R1C1 reference style. which can be set, as illustrated below.

    enter image description here

提交回复
热议问题