Read and write from existing excel file

I have an excel file that is already created and I need to read from the file  and then write back to the same file. I have several apps the write New excel files, but this one needs updated, not a new file.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Don ThomsonCommented:
One way is to use MS Access.  Any relational Database program should be able to do it.
cj_ervinAuthor Commented:
Sorry, I forgot to put in the description, I have to do it from ColdFusion. I have a ColdFusion application and it needs to be read and wrote from inside the application.
What version of ColdFusion? For CF9+ you can use spreadsheet functions.

You can do a lot more, but here is a simple example of reading and updating a single cell. Not tested.

workbook = SpreadSheetRead("c:\path\yourFile.xls");
SpreadsheetSetActiveSheet(workbook, "Sheet1");
// read value in row 1, column 1
value = SpreadsheetGetCellValue(workbook, 1, 1); 
WriteDump("old value="& value);
// change value in row 1, column 1
SpreadsheetSetCellValue(workbook, "This is a new Value", 1, 1);
value = SpreadsheetGetCellValue(workbook, 1, 1); 
WriteDump("new value="& value);
// save to disk. changed last parameter to TRUE to overwrite
SpreadSheetWrite(workbook, "c:\path\yourFile.xls", false); 

Open in new window

JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

cj_ervinAuthor Commented:
Unfortunately my client is still on CF 8 at this current time, in the process of an upgrade, but until then I have to work with CF 8 on their side.
(Edit) CF8 doesn't have any builtin functions. The closest is to download and use the POIUtility.cfc. I haven't used it, or CF8,  in a while, but the cfc should work in CF7+.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Yes, there are samples in the standard /examples directory of the project too ;-)

One thing to note is it only supports the old binary format .xls out of the box.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ColdFusion Language

From novice to tech pro — start learning today.