PFairhurst
Programmer
Does anyone know how to check if an Excel application is open? Such as rsSet.state does for a recordset?
Thank you
Pete
Thank you
Pete
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Command1_Click()
Dim xlApp As Object
On Error Resume Next
Set xlApp = GetObject(, "Excel.Application")
If Err.Number <> 0 Then
MsgBox "Excel is NOT Open"
Err.Clear
Else
MsgBox "Excel IS Open"
End If
Set xlApp = Nothing
End Sub