Get a first column range from a range in Excel VBA

前端 未结 1 679
天命终不由人
天命终不由人 2021-01-17 12:31

I would like to get a column range (the first column) from a range, example: If the Range: $E$9:$I$259 The result : $E$9:$E259

How could I achieve this?

1条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-17 13:09

    By using the columns collection of the range object like so:

    Range("$E$9:$I$259").Columns(1)
    

    0 讨论(0)
提交回复
热议问题