Importing Disaster

mriggio

Board Regular
Joined
Jul 28, 2002
Messages
54
I am importing data from a mdb database and am running into a problem. I have formulas in the excel file that refer to the imported data however, when the data is imported from Access it automatically inserts a new sheet (is. Data_Results). Now, if I put formulas in the excel file and refer to Data_Results!, then save it; when the file is imported nothing works. A dialogue box appears saying information is being taken from a separate file and all this and that but I want the file to be "ready" to refer to the imported sheet everytime it is opened (the imported sheet always is inserted with the same name).

Thanks!!
 

Some videos you may like

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

dtaylor

Active Member
Joined
Mar 21, 2002
Messages
379
you will need to code the file to always import to a predefined sheetname. just add a few lines that ativates the desired sheet and copies the imported data to that sheet. this way you will be able to always ref that sheet.

something like this before the import process begins.

Sheets("DataTransit").Activate
ActiveSheet.Range("a1").Select

hope this helps

dan
 

Watch MrExcel Video

Forum statistics

Threads
1,123,531
Messages
5,602,209
Members
414,513
Latest member
junbuggle

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