dayjournal memo

Total 974 articles!!

VBA #002 - シートの最終行取得

Yasunori Kirimoto's avatar

画像



シートの最終行を取得するメモ。



common.bas


Dim LastRow As Long

'シートの最終行取得
LastRow = Worksheets("Sheet1").Cells(Rows.Count, 1).End(xlUp).Row

MsgBox LastRow


画像



book

Q&A