mfoster711
13 years agoRegular Contributor
Excel Workbook SaveAs FileFormat
TemplateFile = "\\server\TemplateName.xls"
Set objExcel = Sys.OleObject("Excel.Application")
Set objWorkBook = objExcel.Workbooks.Add(TemplateFile)
FileFormat = -4143
objWorkBook.SaveAs(LogFileName, FileFormat)
TestComplete is showing this as a Snytax error on the SaveAs line. Why? If I remove the second parameter it works but I need to specifiy fileformat.