Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cant seem to import xls file
Message
From
15/02/2017 13:19:44
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01647967
Message ID:
01647993
Views:
38
Likes (1)
>>>My code is
>>>
>>>CLEAR
>>>CLEAR ALL
>>>USE c:\global\globalin IN 0 EXCLUSIVE
>>>SELECT globalin
>>>ZAP
>>>append FROM j:\global\ss\aaa.xls TYPE xls
>>>
>>>Microsoft Excel file format is invalid
>>>
>>>
>>>
>>>What am I doing wrong?
>>
>>Aside from Martina's suggestion that it's actually an XLSX, also try type XL5.
>>
>>Tamar
>
>
>Can I upload the file for you to see - I have tried type xl5 - makes no difference

I saw that you said it is XLS. By any chance, did you create it by saving it from a newer version of Excel (2007 or later). The XLS files created there are different than the ones created by earlier versions and VFP can't import them. I consider it a bug in Excel, but Microsoft has no intention of fixing it.

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform