Thank you Nick.
>>Hi Cetin,
>>I wonder if you could help me. I've been doing quite a bit with Word and oword.documents.open(theDoc+'.doc') works fine for me. I wanted to add readonly to this, but I'm not sure how. I tried doing this: oword.documents.open filename:=theDoc+'.doc', readonly:=True but it doesn't like it. I also stored the value of theDoc+'.doc' to theDoc and tried ...filename:=&theDoc, readonly:=True but it doesn't like that either. I really need to be able to open a file as REadOnly and also, in another instance, have a password. I'd really appreciate hearing from you.
>
>oword.documents.Open("c:\mydoc.doc", .t., .t.)
>ReadOnly is 3-rd parameter (the second parameter is ConfirmConversions)
>
>Nick
"Live Well, Laugh Often, Love Much..."