-----Original Message-----
Absolutely, as long as the workbook is not protected.
The approach is virtually the same. You use the MS OLEDB provider for
Jet but specify Excel in the extended properties e.g.
strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\db.xls;" & _
"ExtendedProperties='Excel 8.0'"
Data must be laid out in database style i.e. rows of columns. Column
headers make things easier (especially one row one column tables). The
Excel equivalent of a table is either a worksheet (suffix with $):
SELECT MyCol FROM [Sheet1$]
a defined Name (no $):
SELECT MyKeyCol FROM [MyRange]
or even a range defined at the worksheet level
SELECT MyKeyCol FROM [Sheet1$MyRange]
- or -
SELECT MyDataCol FROM [Sheet2$D4

99]
The square brackets are required for an existing 'table'.
Jet proprietary SQL is used but certain functionality is not supported
e.g. DELETE FROM, ALTER TABLE. Inserted rows are appended to the
bottom of a range. And you can't UPDATE a cell which contains a
formula.
--
"AL" <
[email protected]> wrote in
message news: said:
I've been retrieving ACCESS data using ADO and I'm
wondering if theres a way to insert that Data into a
closed workbook. Thanks in advance.
.