473,387 Members | 1,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How do I import data from a locked Excel file?

Khriskin
I have searched the forums (as well as msdn and other websites) and have not been able to find a solution. Any and all suggestions would be greatly appreciated!

Problem
I have two Excel 2003 files from which I need to import/pull data, however these two files are almost always open/in use by the Scheduling Department.

Current Workaround
Currently I have a warning on the user interface that prompts the user to open the Excel spreadsheets before running the import function. This establishes the read-only connection manually prior to the import call.

Question
Is it possible to use TransferSpreadsheet to open the link to the spreadsheets as read-only? If so, how? (I've been digging around in the external file documentations and I can't find anything that looks like it would work.) If not, is there another option for pulling the data from these files? The workaround is functional, but I'd like to get as much of the programs automated as I can.

THANKS! ^_^
Feb 13 '08 #1
5 3564
cori25
83
Hello...

No, you can not use a transfer spreadsheet for an excel file that is read only.


My suggestion is to re-create the document on your c drive and pull it in to the database like that. It would be best just to have a set time where everyone is aware not to enter the document at a set time and run your automation during this time period.

Other then that, there is no other way around it.

Hope this helps
Feb 13 '08 #2
Delerna
1,134 Expert 1GB
I may be missing the point here but what about incorporating the functionality
of the spreadsheet within access and do away with the spreadsheet altogether.
The users then use a front end database to the access file containing the data instead. The front end can be made to look like the spreadsheet.

I don't know your full details so I'm just making a suggestion.
Feb 13 '08 #3
I may be missing the point here but what about incorporating the functionality of the spreadsheet within access and do away with the spreadsheet altogether. The users then use a front end database to the access file containing the data instead. The front end can be made to look like the spreadsheet.

I don't know your full details so I'm just making a suggestion.
Ah, if only I could wean them off Excel so easily... *wistful sigh* Actually, that is my end goal (I'm already prying them out of Lotus slowly but surely), but it'll be another year or so before I will be able to convince them the database is easier. :P
Feb 13 '08 #4
No, you can not use a transfer spreadsheet for an excel file that is read only.
Darnit. *sighs* Oh well, at least the workaround works for now.

THANKS! ^_^
Feb 13 '08 #5
NeoPa
32,556 Expert Mod 16PB
Is it possible that a DOS COPY command could be used on the file even if locked (It seems to work for me)?
You could do a copy, then import the copied file. Delete it when finished.
Feb 17 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Benny | last post by:
Dear All, I am performing a data import on the SQL server. Due to fact that I use the excel file as a source. Some of cells in excel are actually empty, they become NULL fields after importing...
1
by: Richard Holliingsworth | last post by:
Hello: Thanks for your quick response. I'm trying to import a new Excel file into an A2K table and it's truncating the data. One of the Excel columns is a text field that can be up to 2000...
1
by: Fred | last post by:
Hi. How do I import while mapping an excel table to an access table please??? I've searched around and all I can find is a software product or code that does the same thing as the access...
3
by: deko | last post by:
I've been trying to use the Access Import Wizard to expedite importing data into my mdb. The nice thing about the wizard is that I can import from different file formats - txt, xls, even Outlook -...
2
by: Siu | last post by:
Hi, I use the following code to export and import a file Excel from resp. into a Web page with the following code: //EXPORT Response.Clear(); Response.Buffer = true; Response.ContentType =...
10
by: Niklas | last post by:
Hi Before I start coding I need to be sure that nobody else has not done it yet and that I can use it. I need an import utility which import data from Excel to a database or some object in...
3
by: Simon | last post by:
Dear reader, One table in database A...mdb is linked to a table in database B..mdb. As A..mdb is open and in B...mdb starts an excel import procedure the progress bar shows that the import...
7
by: TG | last post by:
hi! I am trying to create a sql server table from an excel sheet. Here is the code I have: 'This procedure the xlsx file and dumps it to a table in SQL Server
6
by: provor | last post by:
Hello, I have the following code that I am using when a user presses a button to import an excel file into a table. The code is hard coded to point to the correct table. This works great for this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.