Micro Focus QTP (UFT) Forums
Need to identify whether excel is installed in QTP machine - 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: Need to identify whether excel is installed in QTP machine (/Thread-Need-to-identify-whether-excel-is-installed-in-QTP-machine)



Need to identify whether excel is installed in QTP machine - kalyaniR - 10-25-2013

Could some one help me to check whether MS office is installed or not in the machine using QTP?


RE: Need to identify whether excel is installed in QTP machine - basanth27 - 10-25-2013

Set oWord = CreateObject("Microsoft.Word")

If it does not throw a error, word is installed Smile


RE: Need to identify whether excel is installed in QTP machine - kalyaniR - 10-25-2013

Thanks for the reply basanth.. I have write a script such a way that if excel is installed then it should directly load excel sheet and execute the test case else it should open the sheet with open office..That is I want to provide generic script to open and access external excel sheet..