Forum Discussion
Anupa
15 years agoOccasional Contributor
Hi Allen,
Thank you for the suggestion.
I tried doing the same that is I passed the command as mentioned by Alex using VB Script as:
Sys.OleObject("WScript.Shell").Run "D:\BookMark.xlsx"
and it worked fine.
But the moment, I open the Excel 2007 normally by going to Start --> All Programs --> Micrisoft Excel 2007, the application crashed giving the error as:
'(null) is not valid win32 application'.
Later, I was not able to open any Excel workbook.
I had to repair the Excel again.
So, I cannot use this command (Sys.OleObject("WScript.Shell").Run "D:\BookMark.xlsx") through TestComlete as it is crashing my Excel.
My machine configuration is:
Microsoft Windows XP, Professional
Version 2002
Service Pack 2
Inter(R) Xenon(R) CPU
E5405@2.00GHz
1.99GHz, 2.00 GB of RAM
Microsoft Office 2007 is installed.
Application we have developed is an Add-In in Excel. So, need to open an Excel workbook through Command Prompt which will contain the objects associated with this add-in.
The check here is to verify whether the workbook opened through Command Prompt still contains the objects which are associated with the Add-In which we have developed for our Client.
Thanks and Regards,
Anupa
Thank you for the suggestion.
I tried doing the same that is I passed the command as mentioned by Alex using VB Script as:
Sys.OleObject("WScript.Shell").Run "D:\BookMark.xlsx"
and it worked fine.
But the moment, I open the Excel 2007 normally by going to Start --> All Programs --> Micrisoft Excel 2007, the application crashed giving the error as:
'(null) is not valid win32 application'.
Later, I was not able to open any Excel workbook.
I had to repair the Excel again.
So, I cannot use this command (Sys.OleObject("WScript.Shell").Run "D:\BookMark.xlsx") through TestComlete as it is crashing my Excel.
My machine configuration is:
Microsoft Windows XP, Professional
Version 2002
Service Pack 2
Inter(R) Xenon(R) CPU
E5405@2.00GHz
1.99GHz, 2.00 GB of RAM
Microsoft Office 2007 is installed.
Application we have developed is an Add-In in Excel. So, need to open an Excel workbook through Command Prompt which will contain the objects associated with this add-in.
The check here is to verify whether the workbook opened through Command Prompt still contains the objects which are associated with the Add-In which we have developed for our Client.
Thanks and Regards,
Anupa
Related Content
- 6 months agosohailalam2696