LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Excel and Macro with Labview

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

0 Kudos
Message 1 of 5
(3,637 Views)

Maybe you find this page interesting.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 5
(3,634 Views)

thanks for the replay,

 

I'm using Labview 2010. I can't those files in attachements !

0 Kudos
Message 3 of 5
(3,631 Views)

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

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 5
(3,624 Views)

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.

0 Kudos
Message 5 of 5
(3,622 Views)