![]() |
Excel Save as Method - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Excel Save as Method (/Thread-Excel-Save-as-Method) |
Excel Save as Method - chanda Hemke - 06-21-2010 How to replace existing excel file while using Save as Method ? For ex:- In the following code if Newfile.xls already exist ,it gives me alert "Do u want to replace it?" . Code: TestSuitFileLocation="H:" RE: Excel Save as Method - sreekanth chilam - 06-21-2010 Hi Chanda, Check with the belw code: Code: TestSuitFileLocation="H:" RE: Excel Save as Method - chanda Hemke - 06-21-2010 well thnks for reply..but its not wrking..is there any option like:- TestSuiteExcelFile.SaveAs testSuitFileLocation& "\"&TestSuitFileNewName, true RE: Excel Save as Method - vijayendra.shukla - 06-23-2010 Hi Chanda, Use this code Code: TestSuitFileLocation = "H:" Suppressing the alert messages (excelApp.DisplayAlerts = False and excelApp.DisplayAlerts = True) will save you the trouble. HTH. Cheers, Vijayendra |