您的位置:首页 > 其它

Excel开发(VC)—判断excel选择区域的行数和列数

2011-05-10 11:37 232 查看
判断在Excel选择区域的行数列数程序如下:

// 选择区域列数

int nSelColCount = 0;

MSExcel::RangePtr pSelCols = pSelRange->GetColumns(); // 选择区域 --- 列

nSelColCount = pSelCols->GetCount ();

// 选择区域行数

int nSelRowCount = 0;

MSExcel::RangePtr pSelRows = pSelRange->GetRows(); // 选择区域 --- 行

nSelRowCount = pSelRows->GetCount ();
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: