Forum Discussion
- aqAntSmartBear Alumni (Retired)
Hello Armands,
I suggest that you use the WaitWindow method to check whether the message box appears and, if it does, click the Yes button. Please see the Waiting for an Object, Process or Window Activation article for details.
- ArmandsBrunsFrequent ContributorHi Jay,
Thanks for your response
my solution:
--------------------------------------------------
Dim MSExxcel
Set MSExcel = Sys.OleObject("Excel.Application")
MSExcel.Visible = True
If Utilities.FileExists("D:\LTT_Rezultati_IE.xls") Then
MSExcel.ActiveWorkbook.Save ' Save
MSExcel.Quit()
Else
MSExcel.ActiveWorkbook.SaveAs "D:\LTT_Rezultati_IE.xls" ' Save As
MSExcel.Quit()
End If
--------------------------------------------------------
Årmands
Related Content
- 6 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago