Hello All,
I am working in QTP. As a part of process, while testing for functionality of application during testing, i need to open word/excel/pdf file from a folder(Say my documents) and then add some data to word/excel files and save it back in the same folder (if possible with different name) and able to close. See the code below. I am able to launch word and excel but its prompting me to select the default files. please advise as how i can go ahead.
thank you for your help in advance
Sean
Dim wshShell
SystemUtil.Run "C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE","","",""
CreateObject("WScript.Shell").SendKeys "%fo"
SystemUtil.Run "C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE","","",""
CreateObject("WScript.Shell").SendKeys "%fo
I am working in QTP. As a part of process, while testing for functionality of application during testing, i need to open word/excel/pdf file from a folder(Say my documents) and then add some data to word/excel files and save it back in the same folder (if possible with different name) and able to close. See the code below. I am able to launch word and excel but its prompting me to select the default files. please advise as how i can go ahead.
thank you for your help in advance
Sean
Dim wshShell
SystemUtil.Run "C:\Program Files\Microsoft Office\OFFICE11\WINWORD.EXE","","",""
CreateObject("WScript.Shell").SendKeys "%fo"
SystemUtil.Run "C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE","","",""
CreateObject("WScript.Shell").SendKeys "%fo