Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove password automatically
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01366281
Message ID:
01366394
Views:
18
This message has been marked as the solution to the initial question of the thread.
>>>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()
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform