07-08-2008 09:03 AM
07-08-2008 09:27 AM
Hi Tim,
what do you mean, without opening and closeing the excel applciation? Your example use ActiveX functions and they open and close excel.
Maybe this helps: http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=332299#M332299
Mike
07-08-2008 09:37 AM
I know the example is opening and closing excel, I was following an example that appeared to be opening and closing excel but the user never sees the excel app opeing and closing.
Just trying steps to get some results...
Is it possible to handle reading the native excel file through labview?
Thanks
Tim C.
07-08-2008 09:41 AM
Hi Tim,
to not see the excel application you can use the "visible" property node. It´s possible to read it, but you have to know the format description, to get the information you want. What do you want to do with this information?
Mike
07-08-2008 09:49 AM
We have numerous spreadsheets that contain technical data on various pieces of equipment we have used throughout the years on different projects.
These spread sheets have had minor changes throughout the years i.e. a colum has been added or moved.
My goal is to be able read the spreadsheet and determine what columns I need to extract data from. Once tha is determined I can extract the
equipment data i.e. description L, W, H, Weight, Power and BTU ratings and add them to a master list.
once the master list is created I can easily setup equipment groups and perform power, weight, and HVAC calcs.
Best regards
Tim c.
07-08-2008 09:51 AM
Hi Tim,
as i understand it now, you have to use the ActiveX functions.
Mike
07-08-2008 10:15 AM
07-08-2008 12:18 PM
Any chance you could tell me why this is not working?
I was trying to get the active X read working before I tried the ADO...
Best Regards
Tim C.
07-08-2008 12:44 PM
I got the ADO example tweaked and working for the sheet names.
I also tried the adSchemaColumns and it appears to be retrieving the top row with the assumption that these are colum names, is that correct?
So what exactly am doing by using ADO? Am I some how accessing the excel file as if it were a database and gaining access to the data
without the use of excel?
Thanks
Tim C.
07-08-2008 12:56 PM
Simple. You're never actually opening the reference to Excel. Using text-language speakese: You've declared a variable that is of type Excel.Application. However, you've never actually opened a reference to Excel and set the variable's value. The example you copied this from had an Automation Open function. You still need that.
@Tim C. wrote:
Any chance you could tell me why this is not working?
That's pretty much it. Whether or not this is of benefit to you, that's for you to decide based on your requirements.
So what exactly am doing by using ADO? Am I some how accessing the excel file as if it were a database and gaining access to the data
without the use of excel?