cqy 发表于 2008-6-13 14:48:00

求助:CAD的VBA如何清除EXCEL中单元格的内容?

<p>求助:CAD的VBA如何清除EXCEL中单元格的内容?</p><p>&nbsp;&nbsp; ExcelSheet.Cells(1, 10).Select<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Selection.ClearContents</p><p>&nbsp;ExcelSheet.Cells(1, 10).Select<br/>&nbsp;&nbsp;&nbsp;&nbsp; ExcelSheet.Selection.ClearContents</p><p>&nbsp;ExcelSheet.Cells(1, 10).Select<br/>&nbsp;&nbsp;&nbsp;&nbsp; Set Excelcells = Excel.Activecells<br/>&nbsp;&nbsp;&nbsp;&nbsp; ExcelSheet.Selection.ClearContents</p><p>都不行。</p>

manbuzhe 发表于 2008-6-14 21:23:00

<p>直接.clear 可以么?</p>
页: [1]
查看完整版本: 求助:CAD的VBA如何清除EXCEL中单元格的内容?