Re: Extracting Excel File items within Access via VBA
- From: "Steve" <sorry@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 11 Jul 2007 18:00:50 GMT
Look at the Transferspreadsheet function in the Help file for retrieving
data from Excel. Look at the Dir function in the Help file for getting file
names.
PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
resource@xxxxxxxxxxxxxxx
<rlntemp-gng@xxxxxxxxx> wrote in message
news:1184165236.342078.83850@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I need to extract information from some Excel files but am stuck with
part of it:
As an example, I have the following Excel File that has 3 tabbed
sheets:
FileName: C:\ExcelData\JulyFile1.xls
SheetName: Sheet1-07032007 RowCount: 325 ColumnCount: 15
SheetName: Sheet2-07102007 RowCount: 450 ColumnCount: 25
SheetName: Sheet3-07172007 RowCount: 625 ColumnCount: 45
(I have 7 other Excel files with similar attributes)
I have code to open an Excel object, but am having trouble extracting
some other items from these files.
In my Access app, I need to loop through a series of Excel Files in a
folder and need to retrieve the filename if it is indeed an .xls
filetype.
Within each file, I need to retrieve the names of the sheet tabs, as
well as the row count and column count and column names within each
sheet.
Does someone have a code sample of how these items can be extracted
from an Excel file via VBA?
Thanks....
.
- Follow-Ups:
- Re: Extracting Excel File items within Access via VBA
- From: Keith Wilby
- Re: Extracting Excel File items within Access via VBA
- References:
- Extracting Excel File items within Access via VBA
- From: rlntemp-gng
- Extracting Excel File items within Access via VBA
- Prev by Date: How to Display the # of Calls by Clients per Day, Week, and Beyond
- Next by Date: Re: dynamically determining queries to tables?
- Previous by thread: Extracting Excel File items within Access via VBA
- Next by thread: Re: Extracting Excel File items within Access via VBA
- Index(es):
Relevant Pages
|