更新时间:2023-12-05 11:32:46
这是一个示例代码,用于估算Excel的进程是否正在运行。 (VB.NET)
Hi,
This is a sample code that estimates if a process of Excel is running. (VB.NET)
Dim proc As System.Diagnostics.Process
For Each proc In System.Diagnostics.Process.GetProcesses()
If (proc.ProcessName = "EXCEL") then
MessageBox.Show("Excel is running.")
End If
Next