LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Worksheet name as part of Data Source parameter

Hi everybody,

When I connect to an Excel data source using Jet 4.0 I use something
like:

Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\typical.xls ...
extended properties bla bla bla

Is it possible when setting up the connection string to also indicate
the Worksheet Name?
Something like:

Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\typical.xls[Sheet1]
???

I guess not, but I would like to hear it from the pros. If at all
possible, would somebody please post the correct syntax for this? I
tried the above syntax and it didn't work of course.

What I'm trying to accomplish is that once the connection is made and I
retrieve the schema I would only see information regarding the Sheet1
worksheet and not the whole excel file.

In SQL this would be ridiculous of course, but Excel is so strange
anyway...

It's probably some crazy idea but who knows!

Thanks very much

webOweb

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Worksheet as Data Source Pixie78 Excel Discussion (Misc queries) 1 June 24th 09 10:36 AM
Use detailed data in one worksheet to create summary data as chart source rdemyan Charts and Charting in Excel 0 January 23rd 07 02:18 PM
Pull parameter from worksheet for External Data Query to SQL Datab Matt J Excel Discussion (Misc queries) 0 December 7th 06 10:20 PM
Importing data from one worksheet to another based upon part numbe mizer Excel Discussion (Misc queries) 1 November 21st 05 07:46 AM
Saving worksheet as CSV after pulling data from an external data source Richard Edwards[_3_] Excel Programming 4 February 25th 05 09:08 PM


All times are GMT +1. The time now is 08:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"