private void allPromptsToolStripMenuItem_Click(object sender, EventArgs e) { ExcelActions.ExportPromptList(null, exportPromptHyperLinks, visioControl); // required to make sure excel goes away GC.Collect(); GC.WaitForPendingFinalizers(); }