07-22-2009 02:07 PM
The problem is when I place that lookup table on a different worksheet. It works great if I place the lookup table on the same sheet as the template, but when I try to reference a different sheet, I get an error. I'm assuming that I just need to add code to open the second Excel spreadsheet (or better yet - a separate workBOOK). I was confused at first, because the vlookup function worked fine in Excel, but not in LabVIEW. Then I realized that Excel already had all the worksheets in the workbook open, but LabVIEW does not. Am I correct? If I want to use a vlookup to look on another worksheet or another workbook, do I just have to open that second workbook/sheet in LabVIEW?
07-23-2009 12:54 PM
Hi Dan,
You are right. LabVIEW does not have the other worksheets open. I think that you are on the right track. I recommend opening another worksheet and testing it out. LabVIEW should stop giving you an error when you do.
Nick Keel
Applications Engineering
National Instruments