oExcel.Workbooks.Open("c:\book1.xls",,,,password_if_any)
>Now, how can you open password protected file?
>
>>>Hi everybody!
>>>
>>>Please, could you tell me how to protect(setting a password automatically) within a Sheet and a entire Book (in MS Excel) and a document (MS Word) that was created by a VFP command?...
>>
>>
>>oExcel.ActiveWorkbook.Password = "Whatever"
>>
>>* Word
>>oWord.ActiveDocument.Password = "Whatever"
>>