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.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,641
Messages
5,832,816
Members
430,169
Latest member
sartemiou

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