対象のシート.Range(対象とする列の先頭).End(xlDown).Row
Sub GyoSuuSample_01() Dim sheetXXX As Worksheet Dim GyoSuu As Worksheet Set sheetXXX = Worksheets("Sheet1") lngLineNum = sheetXXX.Range("A1").End(xlDown).Row End Sub
Copyright © 2010 Office Tanabe. All Rights Reserved.