Monday, 21 November 2011


Example:
Dim objWD
‘ Create the Word Object
Set objWD = CreateObject(“Word.Application”)
‘ Create a new document
objWD.Documents.Add
‘ Add text to the document
objWD.Selection.TypeText “This is some text.” & Chr(13) & “This is some more text”
‘ Save the document
objWD.ActiveDocument.SaveAs “c:\temp\mydoc.doc”
‘ Quit Word
objWD.Quit
‘ Release the Word

0 comments:

Post a Comment

TrainingHUB. Powered by Blogger.

Total Pageviews

THE BEST QTP TRAINING INSTITUTE IN HYDERABAD

QTP Training in hyderabad

Sql Tutorial

Popular Posts

Our Facebook Page

TrainingHUB

Followers