I use said invocation to release some Excel objects after I’m done. Is it necessary to set references to null afterwards (like in the following code) ?
var dateCol = sheet1.get_Range("C4", "C" + rowOffset);
dateCol.NumberFormat = "Text";
Marshal.ReleaseComObject(dateCol);
dateCol = null;
This is what I always use and it works very well
Do a
On all referenced Excel objects