Hi All,i am using kill statement it’s not working fine. when i am debbugging the code i am getting error from kill statement line.
vtFileName=vtFileName + "" + Format$(Now ,“YYYY-MM-DD”) + “_” +“CalstrsRE_Extracts.xls”
Set excelNewWkbk = excelWkbks.Add
Kill (vtFileName)
Call excelNewWkbk.SaveAs(vtFileName)
i am trying to kill excel file already saved in h: drive. i am saving file using configuration field vtFileName.
the excel file is saving using date format. how to delete excel file using kill statement.
thanks,
prasad