About sheets in a workbook

imported_unknown

Active Member
Joined
Jan 13, 2002
Messages
424
I have a workbook that has several sheets. From these sheets I need to import data to a database. The data will be imported from different sheets at different times.

Can some one explain as to how the sheets are stored in the workbook. Because when I create the DSN it only asks for the workbook path and how can I extract info from a particular sheet in the workbook.
 

Some videos you may like

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

DonkeyOte

MrExcel MVP
Joined
Sep 6, 2002
Messages
9,123
If you're trying to import to Access or something you will need to store them as single sheets in workbooks. I have not found a way to get the import function to differentiate between sheets if more than one is held in the target workbook.

Simple way around it is as part of the macro (before running the import) copy the data and paste into a file (already created) as values then save that workbook - and import from there.
 

Watch MrExcel Video

Forum statistics

Threads
1,126,993
Messages
5,622,049
Members
415,875
Latest member
Tarali

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top