Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下命令将完整使用的范围复制到剪贴板:
mySheet.UsedRange.Copy();
我只想排除第一行并将其余的复制到剪贴板。请帮忙
您可以尝试通过以下方式获取它:
Excel.Range dataWithoutFirstRow = mySheet.Range[mySheet.UsedRange.Cells[2, 1], mySheet.UsedRange.SpecialCells(Excel.XlCellType.xlCellTypeLastCell)];