Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP with MS Word
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi Rahul,

Instead of using treating the application as a Windows application and directly recording on it, you can try using the AOM to declare an object of type Word.Application and then try to access the specific action or property you need to use.

A start would be. You could declare an object of type Word.Application.

'Code
Code:
Set oWord = CreateObject("Word.Application")
oWord.Visible = True
Set oWordObj = oWord.Documents.Add()

This would open a new Word Application. You can no use the oWordObj to perform your specific operation.

Thank You,
Ravi Shankar
Reply


Messages In This Thread
QTP with MS Word - by rahul29 - 01-20-2012, 09:35 PM
RE: QTP with MS Word - by sonali shinde - 01-21-2012, 02:40 PM
RE: QTP with MS Word - by rahul29 - 01-23-2012, 06:34 AM
RE: QTP with MS Word - by DiptiDeshpande - 05-29-2012, 02:47 AM
RE: QTP with MS Word - by ravs@788 - 06-02-2012, 04:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT Word automation wannel 1 2,322 10-31-2016, 06:59 PM
Last Post: wannel
  Can QTP AOM identify word documents that are already opened anil2u 2 4,372 09-05-2013, 12:45 PM
Last Post: anil2u
  Search for a word in excel string QAVA 6 9,309 11-23-2012, 11:17 AM
Last Post: vinod123
  Search for a word in string QAVA 5 4,470 11-22-2012, 04:50 PM
Last Post: Saleel Prabhu
  DP for identifying objects in MS Word rahul29 0 2,389 01-31-2012, 08:44 PM
Last Post: rahul29

Forum Jump:


Users browsing this thread: 1 Guest(s)