HI,
I have created an excel application using the
etc .
code but now i want to delete the file because the sheet does not have any data.
Eveythig works fine but it does not delete the file and gives me an error
permission denied even though the folder has all the access.
My code is
Can anybody help me with this.
Thankyou
I have created an excel application using the
filesys = new ActiveXObject(" Scripting.FileS ystemObject");
code but now i want to delete the file because the sheet does not have any data.
Eveythig works fine but it does not delete the file and gives me an error
permission denied even though the folder has all the access.
My code is
filesys = new ActiveXObject(" Scripting.FileS ystemObject");
if(OSheet.Range ("A10").Valu e = " ")
{
alert("Sheet is blank");
oExcel.Quit();
OSheet = null;
oExcel = null;
if(filesys.File Exists(SaveAsSt ring))
{
filesys.DeleteF ile(SaveAsStrin g);
}
}
if(OSheet.Range ("A10").Valu e = " ")
{
alert("Sheet is blank");
oExcel.Quit();
OSheet = null;
oExcel = null;
if(filesys.File Exists(SaveAsSt ring))
{
filesys.DeleteF ile(SaveAsStrin g);
}
}
Thankyou
Comment