C# | Copy Code |
---|---|
int numberOfRows = worksheet.Cells["A1:B3"].Rows.Count; // 3 rows |
Visual Basic | Copy Code |
---|---|
Dim numberOfRows As Integer = worksheet.Cells("A1:B3").Rows.Count ' 3 rows |
If the IRange represents more than one range of cells, only the first range of cells is represented in the new IRange.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family