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: 5
Default Importing from Excel sheet with unknown name

I receive an Excel file with a lot of data every day, and I have build
a simple import SSIS package which also takes care of som
transformations etc.
The people who send me the file apparently use different setup on
their computers, meaning that some use Englsh MS Excel, and others use
Danish MS Excel. This results in the problem, that sometimes the first
worksheet is named Sheet1, and sometimes it is named Ark1 (Danish for
Sheet1).

The Excel Source in the Dataflow task has to have a name of the sheet,
so every once in a while the job fails, and I have to open the Excel
file and rename first sheet.

Is there any way that I can read the sheetname, or maybe use an "OR"
statement, or maybe rename the sheetname at first?

Best regards.

Soren.

Btw.: I have build the package to loop through all files, if more than
one file is sent. Therefore my Excel Connection Manager is set up with
a connectionstring= "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
@[User::Filnavn] + ";Extended Properties=\"Excel 8.0;HDR=Yes\""
 
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
Importing from another file of unknown name Risky Dave Excel Programming 2 December 17th 07 03:19 PM
Importing excel sheet Viju Gopal Excel Discussion (Misc queries) 0 August 31st 06 05:47 PM
A function that looks for a value on a sheet on unknown column or row Paul134 Excel Worksheet Functions 2 February 28th 06 09:07 PM
help: code for importing xml into excel sheet deepakbadki Excel Programming 0 December 29th 05 08:35 AM
Querying sheet of unknown name ChaunceyMo Excel Programming 2 April 28th 04 09:35 AM


All times are GMT +1. The time now is 11:59 PM.

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"