05-31-2007 06:06 AM
05-31-2007 06:17 AM
05-31-2007 06:47 AM
05-31-2007 08:04 AM
05-31-2007 08:44 AM
Excellent tip, Mike, turns out you were guessing right. I checked this page http://msdn2.microsoft.com/en-us/library/aa220716(office.11).aspx and it feels like I am getting closer.
I have tried putting in stringdata (which is what I want to send in to the fields) through Arg1 (up to Arg4). However I get an error mesage that I have not enough arguments (Arg:s). I am as I said new to VBA. Is there anyone who could tell me how I find out how many arguments I need to send to the VBA macro and how they should look like?
My VBA macro is attached in a text-file.
Any help is appreciated!
05-31-2007 09:27 AM
GOT IT 🙂
The IT-guru at work blessed me with a short glance at the problem and gave me the answer. There were no arguments defined (I confused arguments with variables) in the first line of the script, i.e. it looked like this input_data(). With a little modification to input_data(myarg1 as string, myarg2 as string, myarg3 as string), the arguments are defined and can be sent from labview in that order and used by the VBA script.
Thanks for your help, Mike!
05-31-2007 09:31 AM