ExcelVBAでシート内の最終行を取得する

最終行を取得する

    With Sheets(<シート名>).UsedRange
        LogRow = .item(.count).Row
    End With