09-16-2004 12:13 PM
09-20-2004 10:41 AM
09-20-2004 11:02 AM
09-22-2004 09:48 AM
08-16-2009 08:49 PM
I had the same problem as the NI Engr...I cant seem to get this method of format condition to work. I get an error with no explanation from the item property. Has anyone been successful in resolving this? I need to retrieve the colors of worksheet cells when I read them into Labview because they indicate system faults.
08-16-2009 11:24 PM
Do you get an error number?
I think your problem is that you are breaking your execution of the Excel workbook into two paths and wind up closing the Excel workbook in the upper path before you have a chance to get all the properties in the lower path. Fix your error wires so that you don't execute the Close workbook until after the interior color index property node is read. You should close all the references along that string of functions as well in the reverse order of the way they were created. I'm not sure if the Close workbook and closing the reference right after it will automatically close all the other references you used in the lower string.
08-17-2009 06:53 AM
Error Code is now -2146827284.
The VI reads the worksheet usedrange cell value2 values correct, but the actual usedrange>formatconditions>item>interiors>color returns an error. I suspect that I may be something to do with the item selection, but I have tried 1-3 for it and it stil returns this error. I am still perplexed.
08-17-2009 10:13 AM
You are getting the error because you are trying to read the information from the conditional formats on the range, and there are none. The background color is being set simply by the cell's format, not through a conditional format.
See attached mod. I change the property being read to ColorIndex just for demonstration.
08-17-2009 02:06 PM
08-17-2009 02:51 PM