excel(エクセル) 最終行、最終列の取得

2012年8月12日

Worksheets(“Sheet1").UsedRange.Rows.Count      '最終列
Worksheets(“Sheet1").UsedRange.Columns.Count   ’最終行