PC Review Forums Newsgroups Microsoft Access Microsoft Access VBA Modules Importing Excel multi tabs into Access

Reply

Importing Excel multi tabs into Access

 
Thread Tools Rate Thread
Old 15-09-2009, 06:44 PM   #1
Glen
Guest
 
Posts: n/a
Default Importing Excel multi tabs into Access


I have a form with a button on it that will allow a user to import an Excel
spreadsheet into a table in my database. I am using transferspreadsheet.
It works fine if the data in the Excel worksheet is in the first tab or
sheet. Is there any way to have the user select the tab for the import? Or
preset it so that it always looks for a specific tab?
Thanks!
  Reply With Quote
Old 15-09-2009, 06:50 PM   #2
Ken Snell MVP
Guest
 
Posts: n/a
Default Re: Importing Excel multi tabs into Access

Check the examples at http://www.accessmvp.com/KDSnell/EXCEL_Import.htm

You just need to specify the name of the worksheet in the Range argument of
TransferSpreadsheet.
--

Ken Snell
<MS ACCESS MVP>
http://www.accessmvp.com/KDSnell/



"Glen" <Glen@discussions.microsoft.com> wrote in message
news:8EEDFC1A-6312-491E-AD7D-ECDDC5F4797F@microsoft.com...
>I have a form with a button on it that will allow a user to import an Excel
> spreadsheet into a table in my database. I am using transferspreadsheet.
> It works fine if the data in the Excel worksheet is in the first tab or
> sheet. Is there any way to have the user select the tab for the import?
> Or
> preset it so that it always looks for a specific tab?
> Thanks!



  Reply With Quote
Old 15-09-2009, 07:21 PM   #3
Glen
Guest
 
Posts: n/a
Default Re: Importing Excel multi tabs into Access

Thanks!

"Ken Snell MVP" wrote:

> Check the examples at http://www.accessmvp.com/KDSnell/EXCEL_Import.htm
>
> You just need to specify the name of the worksheet in the Range argument of
> TransferSpreadsheet.
> --
>
> Ken Snell
> <MS ACCESS MVP>
> http://www.accessmvp.com/KDSnell/
>
>
>
> "Glen" <Glen@discussions.microsoft.com> wrote in message
> news:8EEDFC1A-6312-491E-AD7D-ECDDC5F4797F@microsoft.com...
> >I have a form with a button on it that will allow a user to import an Excel
> > spreadsheet into a table in my database. I am using transferspreadsheet.
> > It works fine if the data in the Excel worksheet is in the first tab or
> > sheet. Is there any way to have the user select the tab for the import?
> > Or
> > preset it so that it always looks for a specific tab?
> > Thanks!

>
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off