LoginSignup
3
0

More than 3 years have passed since last update.

vbaそのままコピペ「最終行まで取得」

Last updated at Posted at 2019-07-26

解説抜きでサクッとコピペしたい自分向けのページ
「A2からA列最終行まで」

'構文1
Range("A2:A" & Cells(Rows.Count, "A").End(xlUp).Row).Select

'構文2
Range(Range("A2"), Cells(Rows.Count, "A").End(xlUp)).Select

'数値を取得
Dim r As long
r = Cells(Rows.Count, 1).End(xlUp).Row
3
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0