Import External Data without locking source sheet

juke_juke13

Board Regular
Joined
May 25, 2004
Messages
57
I'm about to pull my hair out. All I want to do is link spreadsheets through an import data query function. However I want the source data sheet to be open for editing. Everytime I try to open it while the import data sheet is open however it says it is locked.

Anyway to just pull the data without locking the source sheet?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
If anyone has a suggestion it would be much appreciated. I've googled this to no end and there is not much help out there. Seems like a problem that would be pretty common but also resolvable.

Problem:
-allowing source spreadsheet to be opened/edited while another sheet accesses data through import data function.

Cheers!
 
Upvote 0
AP is on it, consider it solved!

Maybe the reason this has been impossible to find is b/c it's specific to something our computers run. Hope not!

I just used an import external data > new database query

And followed the setup wizard for an excel file data import.

Every time this sheet is open and I goto open the source sheet it's locked for editing by ""
 
Upvote 0
Just an excel file.

Dates along the left column, years along the top row, and data numbers in the middle. The whole purpose of this was to basically pull in all that info without using a macro that simpled opened the source sheet, copied and pasted.
 
Upvote 0
Data - Connections - Add
Connection string:

Code:
DSN=Excel Files;DBQ=c:\temp\test.xls;DefaultDir=c:\temp\;DriverId=1046;MaxBufferSize=2048;PageTimeout=5;ReadOnly=1;
Command text:
Code:
SELECT * FROM [Sheet1$]
OR
Code:
SELECT * FROM [Sheet1$A1:D100] d WHERE d.Date IS NOT NULL
for more advanced queries
I hope you've got the idea ;)
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,818
Members
452,946
Latest member
JoseDavid

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