Micro Focus QTP (UFT) Forums

Full Version: Methods for Applications
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to get methods available for application which is opened by using createobject function...

e.g.

Code:
dim xl
set xl=createobject("excel.application")
xl.visible=true
xl.[b]workbooks[/b].add
'xl.[b]workbooks.[/b]open "path of the file"
xl.[b]sheets[/b]("[i]Sheetid[/i]").select
val=xl.[b]cells[/b](row,column).value
print val
xl.quit
set xl=nothing

here I used some methods available for Excel,

How to get methods for different applications like, Access, Word, Outlook....etc?
Good question, awaiting answer for it! Smile
The way we have Automation Object Model(AOM) for QTP...similarly MS has created object models for the applications mentioned by you... You need to digg into the corresponding object model on MSDN site for complete reference.

Here is a link to excel object model and word object model.
Thank You Ankur,

These links are very helpful to get the objects of excel,word,...etc.,