Forum Discussion

hina's avatar
hina
Contributor
3 years ago

How can I compare 2 excel files

Hi,

 

How can I compare 2 excel files. I am trying to use the code below, but it is complaining "objectExcel is undefined"

 

function TestExcelCompare()
{
xlfile1 = "C:\\ELink\\Logs\\ExpectedLogs.xlsx";
xlfile2 = "C:\\ELink\\Logs\\ActualLogs.xlsx";
resfile = "C:\\ELink\\Logs\\ResultLogs.xlsx";
Log.Message(objectExcel.ExcelCompare(xlfile1,xlfile2,resfile));
}

 

Any help would be appreciated.

 

Thanks,

Hina