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!!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,496
Members
449,089
Latest member
Raviguru

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
Back
Top