03-18-2010, 08:58 PM
What is your Office version?
What text is in Excel title bar when you open the document?
Is Excel version is different, maybe title bar text is formatted differently, or class name is different. Then edit these lines:
str excelTitleBarText.from("Microsoft Excel - " d.FileName)
int w1=wait(30 WA win(excelTitleBarText "XLMAIN"))
Also try to change the second line to:
int w1=wait(30 WA win(excelTitleBarText "" "" 2))
What text is in Excel title bar when you open the document?
Is Excel version is different, maybe title bar text is formatted differently, or class name is different. Then edit these lines:
str excelTitleBarText.from("Microsoft Excel - " d.FileName)
int w1=wait(30 WA win(excelTitleBarText "XLMAIN"))
Also try to change the second line to:
int w1=wait(30 WA win(excelTitleBarText "" "" 2))
