最後の行と列を取得 方法1 †Range rng = ws.UsedRange; MessageBox.Show(rng.get_End(Microsoft.Office.Interop.Excel.XlDirection.xlDown).Row.ToString() + ":" + rng.get_End(Microsoft.Office.Interop.Excel.XlDirection.xlToRight).Column.ToString()); 方法2 †int EndRow = ws.get_Range("A1",TypeMissing).get_End(Excel.XlDirection.xlDown).Row; あなたのお住まいの地域で最安のブロードバンド選び コメント: |