Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Cetin Basoz
  Where is Cetin Basoz?
 Izmir
 Turkey
 Cetin Basoz
 To: Luca Moioli
  Where is Luca Moioli?
 Bergamo
 Italy
 Luca Moioli
Subject: RE: Excel/Word object model
Thread ID: 470697 Message ID: 470722 # Views: 48 # Ratings: 2
Version: Visual FoxPro 9 SP2 Category: Microsoft Office Automation
Date: Thursday, December 12, 2019 11:55:11 PM         
   



>
> Dear Cetin,
> essentially my procedures open and read xls files to import data.

Importing data doesn't have much to do with VBA automation. Preferred way is to use OLEDB or ODBC. And I repeat, seeing the confusion, you shouldn't be worried if it is xls or xlsx. It is not your concern but driver's (or COM object in case of automation). You need an Excel file.

Have a look at this old thread (valid for any version of excel) - ACE.OleDb driver can open any version of excel data:

http://www.foxite.com/archives/vista-excel-compatibility-w-worksheets-0000153776.htm




Cetin Basoz

Give some sample data in code for your question - here is the tool you need to generate the code

My Blog


PostgreSQL - World's most advanced open source database

MongoDb Certified Developer
MongoDb Certified DBA


Support Wikipedia


Flutter for mobile, for web & desktop.

The way to Go.

How to create a Minimal, Reproducible Example

ENTIRE THREAD

Excel/Word object model Posted by Luca Moioli @ 12/12/2019 6:42:20 AM
RE: Excel/Word object model Posted by Cetin Basoz @ 12/12/2019 1:21:43 PM
RE: Excel/Word object model Posted by Luca Moioli @ 12/12/2019 9:47:47 PM
RE: Excel/Word object model Posted by Koen Piller @ 12/12/2019 10:47:42 PM
RE: Excel/Word object model Posted by Cetin Basoz @ 12/12/2019 11:55:11 PM
RE: Excel/Word object model Posted by Luca Moioli @ 12/13/2019 7:34:15 AM
RE: Excel/Word object model Posted by Mike Gagnon @ 12/12/2019 3:04:04 PM
RE: Excel/Word object model Posted by Tony Vignone @ 12/12/2019 4:24:36 PM
RE: Excel/Word object model Posted by Luca Moioli @ 12/12/2019 9:29:21 PM
RE: Excel/Word object model Posted by Tony Vignone @ 12/12/2019 11:38:01 PM
RE: Excel/Word object model Posted by Luca Moioli @ 12/13/2019 7:39:24 AM
RE: Excel/Word object model Posted by Tony Vignone @ 12/13/2019 3:51:36 PM
RE: Excel/Word object model Posted by Luca Moioli @ 12/13/2019 6:27:06 PM