>>>>Hi everybody,
>>>>
>>>>Suppose, I have an Excel file that may or may not be protected with a known password. What should I do to be able to do APPEND FROM it?
>>>>
>>>>Thanks in advance.
>>>
>>>Automation?
>>
>>Well, the question was - can we save the file under the same name after we opened it? Also may be you have some code samples so I would not re-invent the wheel?
>>
>>Thanks.
>
>Sure:
>
>oExcel = CREATEOBJECT([Excel.Application])
>oExcel.Workbooks.Open([the excel file],,,,[password])
>oExcel.DisplayAlerts = .f.
>oExcel.ActiveWorkbook.SaveAs([the excel file],,[])
>oExcel.Quit()
>
Thanks, I may try that.
If it's not broken, fix it until it is.
My Blog