2013-05-30 163 views

回答

1

試試這個:

Dim p() As Process = Process.GetProcessesByName("WinWord") 

    If p.Count = 0 Then 

     ' No word instance opened 

    Else 

     ' Any Word instance opened 

    End If