Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Microsoft Excel file format is invalid
Message
From
05/12/2007 12:38:59
 
 
To
05/12/2007 12:11:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01273140
Message ID:
01273314
Views:
33
>>>>Is it by any chance in Excel 2007 format?
>>>I don't know. Is there any way to examine the file to find out? Either some property I can find out in Excel or via looking at some specific bytes in the file.?
>>>
>>>>If yes, then this problem was already discussed here and IMPORT function is not going to work.
>>>
>>>Ouch.
>>>
>>>Thanks a bunch for responding.
>>>
>>
>>Rich,
>>
>>Please check this thread Checking the version of an Excel File Thread #1260311 and also thread referenced there.
>
>You can also check Thread #1272524 to see how you can save Excel file to Excel 95 format programmatically through OLE Automation. I do this into a dedicated temporary XLS file as an intermediate step every time I import spreadsheets now using a simple ImportXLS5() -function I wrote.
>
>Pertti

I had tried manually saving as 95 format - but must have been doing something wrong because my error did not go away. I tried it again today and it worked. Go figure.

At any rate, I found your post on how to do this in code and that worked too (no surprise to you I'm sure).

Thanks a bunch............Rich
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform