hi,
I am exporting an excel file to my local disk. When I am trying to hide the excel work sheet, its throwing the following error :
Exception from HRESULT: 0x800A03EC
foreach (Excel.Worksheet ws in wb.Worksheets)
{
if (ws.Name.StartsWith("Sheet"))
ws.Visible = XlSheetVisibility.xlSheetVeryHidden;
else
ws.Protect("Nu*1", m, m, m, m, m, m, m, m, m, m, m, m, m, m, m);
}
I have gone through google also but I didn't get the solution. Any help would be appreciated
Thank you,
Pradeep Anugu.