Message 1 of 6
Excel isn't playing nice

Not applicable
05-03-2016
12:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everybody,
I made a rule that extracts information from an Excel file, and it works great for everybody in our team, except for this 1 guy that uses Office 2013, whereas the rest of us use Office 2010. His Windows Task manager shows that every time he runs this rule, an additional EXCEL instance is opened and stays open. He gets 10-12 of these after a few hours. I have 1 or none at all.
Needless to say I'm looking for a way to close his excessive Excels excellently.
I tried using the line GoExcel.Close, to no avail. Here is the relevant code, if it can help:
SyntaxEditor Code Snippet
' --- Trouve la cellule contenant le Materiel actif FichierExcel = "T:\Inventor Normand\Design Data\iLogic\Mat-Actif.xls" Dim NumMateriel as String Dim rowPN as Integer For rowPN = 1 To 2000 If (GoExcel.CellValue(FichierExcel, "Feuil1", "A" & rowPN)) = NomMaterielSeul Then NumMateriel = GoExcel.CellValue(FichierExcel, "Feuil1", "B" & rowPN) iProperties.Value("Custom", "NumMateriel") = NumMateriel iProperties.Value("Project", "Description") = NomMaterielSeul 'Info1 = GoExcel.CellValue("C" & rowPN) Exit For ' ElseIf NumMateriel = ""' Exit Sub End If Next
'GoExcel.Close Commented out, but does nothing if re-inserted
If NumMateriel = Nothing Then MessageBox.Show("Le materiel actif n'existe pas dans la librairie des materiaux." & vbLf & _ "SVP choisir un materiel dans la liste en haut.", "Erreur - iLogic" End If
Thank you to any and all who chime in to help.