Micro Focus QTP (UFT) Forums
Methods for Applications - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Methods for Applications (/Thread-Methods-for-Applications)



Methods for Applications - bfakruddin - 12-31-2008

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?


RE: Methods for Applications - nageshpv - 01-02-2009

Good question, awaiting answer for it! Smile


RE: Methods for Applications - Ankur - 01-03-2009

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.


RE: Methods for Applications - bfakruddin - 01-06-2009

Thank You Ankur,

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