Test if Lotus Notes open

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone have any VBA code to test if Lotus Notes application is running

TI
 
Have a look at the FindWindow API call.

I do not have Lotus Notes: if its caption is not volatile or its class is known, FindWindow will return its handle.
 
Try this:

Sub LotusNotes_Running()
Application.ScreenUpdating = False
On Error Resume Next
AppActivate "Lotus Notes"
If Not Err.Number = 0 Then
Err.Clear
MsgBox "Notes is Not Running", vbInformation
Else
'your code to run here is Notes is open
End If
End Sub

Regards

AJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top