LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

excel Run Macro error

I've set the security options in Excel to Trust access to Visual Basic Project to checked and even reduced Security level to Low but still when I try to run a macro (which works from the spreadsheet) from LV2009 it gives a -2146827284 error, can't find macro.

Attached is my LV .vi and the image of the error window.

I must be missing something very simple but can't find it.

 

Download All
0 Kudos
Message 1 of 3
(2,859 Views)

What module is your program being imported into?

 

I'm wondering if you are not fully qualifying the name of the macro.  Assuming the macro gets created in Module 1, what happens if you tried Module1.Sort in your macro name control instead of just Sort?

0 Kudos
Message 2 of 3
(2,847 Views)

Thank you. 

I had tried that but just tried it again as Module4.Macro1. (See attached screen capture).

Frustrating, this is holding up a large application. 

0 Kudos
Message 3 of 3
(2,837 Views)