Struggling with opening an Excel sheet by clicking on a button? I've written the code, but encountering issues.
function openFile(strFilePath)
{
var objExcel;
//Create EXCEL object
objExcel = new ActiveXObject("Excel.Application");
objExcel.Visible = true;
objExcel.Workbooks.Open(strFilePath, false, false);
}
The problem lies in ActiveXObject not being defined. I've tried various other codes, but haven't found a solution yet. If you have any suggestions, please share them with me.