Power,
Try:
MDOCFILE = CREATEOBJECT("Word.Application")
MDOCFILE.Documents.Add('C:\WRDPROC\MYDOC.DOC')
MDOCFILE.Visible = .T.
>I have tried to put this inside a button
>MDOCFILE = GETOBJECT('C:\WRDPROC\MYDOC.DOC')
>or
>MBUDVAR = GETOBJECT('C:\Excel\aaa.XLS')
>and then run it.
>I got nothing happened on my screen. A short period of the loading symbol "sand watch" then nothing. What should I do to open an OLE automation object in its application like Excel or Word?
>
>Power