I am trying to read excel sheet names. I am not able to close excel after operation. Could you please explain why?
I don't know what is wrong in that system. It is working for me also in another system. I will try once again after restarting.
You have a breakpoint set right before your error out indicator. But perhaps that is just from your debugging process.
Instead of having a shift register for the error wire on you For loop, make them regular tunnels. Perhaps probe for errors in that For loop. One problem with error wire shift registers in loops is that one potential error would keep all other iterations of the loop from executing as well. It may not be the problem here, but is something to consider.
I can't open your vi (only have 8.2 here), but I ran into an issue lately where Excel wouldn't close because it was waiting for input from the user. The Excel files were originally saved in Excel 2002, but the PC running the LV app that opened them, read them, and closed them wanted to save them back as Excel 2003, which is what it had installed on it.
I don't know if there was a work-around in the Excel options or not - we just rolled the Excel install back to 2002 and that fixed it.