Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE Automation
Message
From
08/09/2008 11:15:22
Marcus Hüneke
Heidelberger Druckmaschinen
Wiesloch, Germany
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01345766
Message ID:
01345766
Views:
51
Hello,
I hope somebody here can help me. I want to open all our Excel/Word/Powerpoint –Files with the extensions XLS, PPT and DOC and save them into the new Office 2007 format (XLSX, DOCX and PPTX).
So I’ve written a Foxpro program which opens the files via OLE-automation and saves them in the new format. Works fine so far, but there is one problem. If e.g. the Excel file has a macro inside it is lost if you save it to an XLSX-File. If you don’t want to lose the macro you have to save it as XLSM-File.
Now my question: Is it possible to find out whether an Excel-File has a macro or not?

Any help is appreciated

Thanks in advance :-)

Marcus
Next
Reply
Map
View

Click here to load this message in the networking platform