03-27-2009 01:28 PM
I tried the different code I saw on the forum but it does not work anymore for me.
I have a chart on Excel and I would like to configure the scales.
Could it come from my chart type or something like that ?
Any help ?
Thanks,
03-27-2009 08:40 PM - edited 03-27-2009 08:47 PM
There are a couple issues with your code.
1. You have a broken run arrow because not all of the terminals in the Workbooks Invoke Node are wired.
2. You are not closing your references properly. You are closing the reference to an object immediately after you use it.
For instance, you are closing the reference to the application right after you use an Invoke Node with it to get the Workbooks. Once you've closed the application reference, the workbooks reference becomes meaningless. This behavior occurs all through the chain of your code.
You need to close references in the reverse order that you open them after you are completely done using them. See this thread.
http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=64861#M64861