02-29-2012 05:44 AM
Hello every body,
I have to read to excels files int order to treat them and generate graphs ( 3 graphes) in another excel file. to do that, i want to use the Macro for Excel.
How can i do, I want to write my basics codes VBA even in Labview.
Tks for your help
02-29-2012 06:24 AM
Maybe you find this page interesting.
hope this helps,
Norbert
02-29-2012 06:42 AM
thanks for the replay,
I'm using Labview 2010. I can't those files in attachements !
02-29-2012 07:41 AM
It also requires the Office Report Generation Toolkit.....
So maybe i shorten this and tell you that the toolkit includes a VI called "Excel Run Macro.vi". Within this VI, an ActiveX call is done to the Excel Application class called "Run" taking many optional arguments.
So working with ActiveX to interface with Excel will give you the needed toolsuite.
Please refer to msdn.microsoft.com for specific help on Microsoft products (like Excel). You can use this link for an easier start.
hope this helps,
Norbert
02-29-2012 07:46 AM
There is also an example that ships with LabVIEW that shows you how to run a macro in an Excel workbook.
In the future, please perform a search and investigate the examples before posting.