Micro Focus QTP (UFT) Forums
How to use excel macro - 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: How to use excel macro (/Thread-How-to-use-excel-macro)



How to use excel macro - Maruthi15 - 08-21-2009

Hi,
Please can any one help me Smile

How to lunch qtp from excel macro and how to run qtp scripts through excel macro.

Can any one share documents on key word driven framework.

Thanks
Maruthi


RE: How to use excel macro - Saket - 08-21-2009

You can use this function in your Excel Module to Launch QTP

Code:
Sub LaunchQTP()
    Dim qtApp
    Dim qtTest
    
    Set qtApp = CreateObject("QuickTest.Application")  ' Create the Application object
    qtApp.Launch ' Start QuickTest
    qtApp.Visible = True 'Make the QuickTest application visible
End Sub

I am wondering why anyone would like to do this from excel? can you please explain your scenario where you need to do this?