且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Excel加载项卸载,检查Excel是否已打开。

更新时间: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