LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help in Excel.

For some reason I just can get this excell thing down. All i want to do is take a 2D array of numbers, and put them into a new workbook and worksheet and run a macro on it. I looked over the examples and It looked like mabye you have to already have a file saved on your system in order to run a macro... hopfully this isnt true, but i dont know. If anyone can help, please do.
Thanks
-Mark
0 Kudos
Message 1 of 3
(2,800 Views)
Yes, you need a saved file on your system to run a macro. A macro cannot be created dynamically from ActiveX, but must be created in Excel and saved as a workbook, template or an add-in. Your best three choices are:

1. Save your macro in a workbook and use it like a template. Instead of creating a new workbook, load the template, put in your data, run the macro and then use Save As to rename the file. This adds the macro to every data file.

2. Save the macro in a Macros.xls file and open this workbook before you run the macro. Add "Macros.xls!" to the name of the macro.

3. Save the Macros.xls file in the XLStart folder. This workbook will be loaded every time you start Excel.

Michael
www.abcdefirm.com
Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.1, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
Message 2 of 3
(2,800 Views)
When I saw this question I thought,

"who is going to answer a question like that except Michael Munroe."

Your answers on topics like fills in nicely the gap the rest of us have.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,800 Views)