HOW TO close Excel instance started by mail merge
问题 HOW TO close Excel instance started by mail merge this code running inside launcher does not have access to Excel running via DDE ?? 'For i = 1 To Workbooks.Count ' MsgBox ("here" + Workbooks(i).Name) 'If (Workbooks(i).Name <> ActiveWorkbook.Name) Then 'Workbooks(i).Close 'End If 'Next i 回答1: You can kill the excel process like so: (from http://www.dreamincode.net/code/snippet1543.htm) //Namespaces needed using System.Diagnostics; public bool FindAndKillProcess(string name) { //here we're