Assigning SystemUtil.Run object to a variable - 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: Assigning SystemUtil.Run object to a variable (/Thread-Assigning-SystemUtil-Run-object-to-a-variable) |
Assigning SystemUtil.Run object to a variable - rahul29 - 02-09-2012 I am running MS Word using: SystemUtil.Run "C:\Program Files\Microsoft Office\Office12\WINWORD.EXE","","","" Can this be assigned to a variable Var, so that different actions in Word such as Var.Documents.Add(), Var.Selection.TypeText etc. can be performed? Or could you tell me how i could do these actions after running SystemUtil.Run? I am not using CreateObject(Word.Application) or GetObject, as they are giving me a different template of Word. Only SystemUtil.Run is giving the correct Word template that i need to use. I am using QTP10, and MS Word 2007. Any help or suggestions would be greatly appreciated. |