hina
3 years agoContributor
Deleting a Column in Excel
Hi,
How can I delete a column in excel, The code below doesn't work
function Test1()
{
var excelFile = Excel.Open("C:\\ELink\\Logs\\testlogs.xlsx");
var excelSheet = excelFile.SheetByTitle("Sheet1");
excelSheet.Range("2:2").Delete; // This doesn't work
excelFile["Save"]();
}
Any help would be appreciated.
Thanks,
Hina