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



excel macro to open QTP from excel - karthik1979_us - 05-28-2009

Hi,

Could anyone please provide an excel macro example which illustrates opening QTP through excel

Thanks,
Karthik


RE: excel macro to open QTP from excel - geethwind - 11-07-2009

Paste the below code in the Excel Macro and this should solve your purpose.

Code:
Sub QTPInvoke()
Set qtApp = CreateObject("QuickTest.Application") ' Create the Application object

qtApp.Launch ' Start QuickTest
qtApp.Visible = True ' Make the QuickTest application visible

End Sub