#40725 - 2003-05-2604:36 PMRe: Writing to an Excel File
Howard BullockHoward Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I have not done any Excel COM scripting yet but I believe that you should be able to done just about anything you can do in the Excel application itself.
You should be able to change the value of a specific cell. I know this type of thing has been discussed on one of my Perl mailing lists. I will see if i can find a reference example that can be translated to KiXtart.
You are always writing into the range of A1-C1. You will have to change the ranges depending on the row you want to write to. However, it would be easier to either wirte to a CSV-file, then import that into Excel or really go the professional route and use a database like MS Access or any SQL server for this. This will give you the flexibility of using SQL queries to SELECT/INSER/UPDATE your records. Appropriate UDFs can be found in the UDF Forum.
[ 15. July 2003, 15:06: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.
Registered: 2003-07-15
Posts: 4
Loc: the Netherlands
hmmm...not looking to get too professional right now... This is difficult enough as it is. (had a quick glance at the database thingy, but I had to close the screen, otherwise my head would've exploded... )
thx anyway, Jens.
I'll try your option.
_________________________
the trouble with doing nothing, is that you can't stop to take a rest.