LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I run an Excel macro using a labview button?

I am generating a 'text' report from my Labview program on notepad. In order to present a properly formatted report, I am using an excel macro.
I am running the excel macro using a separate button on the desktop(outside labview). I would like to 'run' the macro from Labview itself using a button. Could anyone suggest how I could do this?
0 Kudos
Message 1 of 5
(3,416 Views)
Hi,

There are a no of Posts on this forum about this issue. If you run a search "Macros from Labview" you will get a bunch of posts. See if any of them fits.

As per your case... Here is a Link to a Post which may fit your need.

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000E14E0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=Run+Macros+from+LabView&USEARCHCONTEXT_QUESTION_S=0

Good Luck!!

Mache
Good Luck!

Mache
0 Kudos
Message 2 of 5
(3,416 Views)
Here is another great Post!!

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000027050000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_TIER_0=0&USEARCHCONTEXT_TIER_S=0&USEARCHCONTEXT_QUESTION_0=Run+Macros+from+LabView&USEARCHCONTEXT_QUESTION_S=0

Good Luck!!

Mache
Good Luck!

Mache
0 Kudos
Message 3 of 5
(3,416 Views)
Thanks!
I still have problem as I am using Labview 5.1. The links I got lead me to VIs written in 6.1.
Any help for running excel macros from Labview 5.1 ?
0 Kudos
Message 4 of 5
(3,416 Views)
Here is a Link where you can get Example Code for LV 5.0

http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/190d1f351297ef9a862567740073e2bc?OpenDocument

Good Luck!!

Mache
Good Luck!

Mache
0 Kudos
Message 5 of 5
(3,416 Views)