When Run iLogic rule got pop up box: Excel is already open

When Run iLogic rule got pop up box: Excel is already open

Anonymous
Not applicable
886 Views
2 Replies
Message 1 of 3

When Run iLogic rule got pop up box: Excel is already open

Anonymous
Not applicable

Could somebody help me with this problem:

I have an assembly that send and pull info from a Excel file called PF-Skeleton.xls

I have a pop up box every single time: After I filled info into a Form that I want to be transfered to that external spreadsheet and then read info back

The pop up box says:

PF-Skeleton.xls is already open. Reopening will cause any changes you made to be discarded. Do you want to reopen PF-Skeleton.xls?

 

I have verified if the file is open and is not, but have noticed that in the windows task manager the process indicates excel is there at least twice.

 

Have any of you had this behaviour in any of your models? and Why that could be happening?

 

Any help on this would be really appreciated,

 

Eric

 

 

0 Likes
Accepted solutions (2)
887 Views
2 Replies
Replies (2)
Message 2 of 3

VdVeek
Advocate
Advocate
Accepted solution

What if you close Excel after you made the changes. The error say's that you try to reopen the excel file, so there is already an excel active. Use Excel.Close. Otherwise past your ilogic code here so we can have a loo at it.

Rob.

Autodesk Inventor 2015 Certified Professional & Autodesk Inventor 2012 Certified Professional.
Message 3 of 3

Anonymous
Not applicable
Accepted solution

Thank you Rob,

 

Just had to add the excel.close to every part where the rule was used and now it works fine.

 

Thank you,

 

Eric

0 Likes