ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   delete data in an execl from c++ (https://www.excelbanter.com/excel-programming/454187-delete-data-execl-c.html)

[email protected]

delete data in an execl from c++
 
how can i delete data in an excel from c++ ?
i've tried excel_file_name.clean() but it's not working.
thanks in advance .

GS[_6_]

delete data in an execl from c++
 
how can i delete data in an excel from c++ ?
i've tried excel_file_name.clean() but it's not working.
thanks in advance .


Either of methods Clear OR ClearContents

Ref a Range on a specific sheet...
appXL.ActiveWorkbook.Sheets(#).Range("A1:D11").Cle ar
appXL.ActiveWorkbook.Sheets(#).Range("A1:D11").Cle arContents

OR Ref a sheet...
appXL.ActiveWorkbook.Sheets(#).Cells.Clear
appXL.ActiveWorkbook.Sheets(#).Cells.ClearContents

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


All times are GMT +1. The time now is 07:18 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com