Jump to content
Sign in to follow this  

word object !

Recommended Posts

hi all,

i have been trying to insert text in word.

Could any body help me.

the code so far i have written as follows:-


$str = "hello"

$word = ObjCreate("word.Application") ; Create an Word Object

$word.Visible = 1

$word.Documents.Add ; Let Word show itself


this is the problem area......

what should i write here .........so that i could be able to put $str in the document#ce

sleep(4000) ;See the results for 4 seconds

$word.Activedocument.Saved = 1 ; Simulate a save of the Workbook



relpy asap.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...