0
点赞
收藏
分享

微信扫一扫

excel定位

ZSACH 2022-11-27 阅读 109

excelManager.Application.Goto(strTipCost, null);
intTempRowIndex = excelManager.Application.ActiveCell.Row;
itnTempColumIndex = excelManager.Application.ActiveCell.Column;
Excel.Range rangeSourceLabel = excelManager.Worksheet.get_Range(excelManager.Worksheet.Cells[intTempRowIndex + 2, itnTempColumIndex - 1], excelManager.Worksheet.Cells[intTempRowIndex + 5, itnTempColumIndex-1]);
rangeSourceLabel.Copy(rangeTargetLabel);
rangeTargetLabel.ColumnWidth = rangeSourceLabel.ColumnWidth;

举报

相关推荐

0 条评论