08-29-2006 11:06 AM
08-29-2006 01:29 PM
08-29-2006 01:52 PM
Can you post what the solution ended up being? It would help people who encounter this problem in the future. And it would satisfy my curiosity... 🙂
-D
08-29-2006 03:48 PM
08-29-2006 05:07 PM
Hi Mike,
I don't know much about VBA, so I'm not sure how to write a macro in such a way that it has a return value. There is a macro example that ships with the Report Generation Toolkit ([LabVIEW]\examples\office\Word Examples.llb\Run Macro on Word Table.vi), but it doesn't have a return value. If you have a macro that successfully gives you a return value, you just need to convert it from a variant to the proper datatype. I'm guessing in your case, it would be an integer if it returns the row number, or a string if it returns the Excel-specific coordinates (like B2, A13, etc.). You can use the Variant to Data function (on the ActiveX palette) to convert variants to the proper datatypes.
I don't know much more to tell you. Let me know if you make any progress.
-D