excel.ActiveSheet.UsedRange.Columns.Count;   
excel.ActiveSheet.UsedRange.Rows.Count;

相关文章: