Hi,
I am trying to delete a particular sheet in my report template using vbs script. But I am getting GDI error.
Part of code where it fails:
Report.Refresh
Error1 = Err.number & Err.Description
sheet_name = "test"
If Report.Sheets.Exists(sheet_name) then
Report.Sheets.Remove(sheet_name)
End If
Report.refresh
Error2 = Err.number & Err.Description
Error1 ==> ""
Error2 ==> -2147418113(GDI+ Error) The method performed an arithmetic operation that produces a numeric overflow
Issue occurs when deleting a particular sheet. No issues if I delete some other sheets in the report.
regards,
Durai