09-04-2009 07:37 AM
Bonjour,
A partir d'une feuille Excel ouverte depuis Labview (v8.5) comment faire pour récupérer la position de la dernière cellule de cette feuille ?
Actuellement, je lance une macro depuis Labview en même temps que la feuille dont je veux connaitre la taille et cette macro me donne la dernière cellule. C'est un peu lourd...
Dans la même idée, y-a-t'il un moyen de lire une feuille Excel plus simplement qu'en passant par un ActiveX ?
Merci pour vos réponses.
Solved! Go to Solution.
09-04-2009 08:31 AM
(in English)
Hi,
From an Excel sheet openned from Labview (v8.5) how can I get the last cell position of this sheet ?
Actualy, I run a macro from Labview together with the sheet for witch I want to know the size and this macro give's the last cell. It's a bit incomode...
In the same idea, is it possible to load an Excel sheet withouit using an ActiveX ?
Thanks for your answers.
09-04-2009 08:40 AM
09-04-2009 08:49 AM
Thank you for your answer Harold but this toolkit is a bit expansive comparatively to my demand.
Perhaps later...
09-04-2009 08:53 AM
this board may be able to help you in this board there should be a LabVIEW LLB it is a excel Library
http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=2391&query.id=53873#M2391
09-04-2009 08:57 AM
bruno.bel wrote:From an Excel sheet openned from Labview (v8.5) how can I get the last cell position of this sheet ?
Actualy, I run a macro from Labview together with the sheet for witch I want to know the size and this macro give's the last cell. It's a bit incomode...
If you already have a macro you could simply duplicate the code the macro does by calling the same properties and methods via ActiveX.
In the same idea, is it possible to load an Excel sheet withouit using an ActiveX ?
Short answer: sort of.
Long answer: depends on what you mean by "load". If you just want the values then you can save the Excel sheet as a delimited text file and then simply use the Read From Spreadsheet File VI. You can also use DDE, though that's an old and outdated technology. You can also treat the Excel sheet as a database and use database-related technologies like ADO. Search around the forum as examples have been posted.
09-04-2009 09:29 AM
Thank you Harold & Mercurio, I think that I've found what I want in the forum's links you give me.
Now I will try the VIs I've found.
If all is Ok, I'll close this message.