How to know Outlook is being started in Offline mode?

  • Thread starter Thread starter paresh
  • Start date Start date
P

paresh

Hi,

Could anyone please help me to find out the way to know Outlook is being
started in Offline mode? In other words, I want to find out whether Outlook
has not connected/disconnected with Exchange server from my Outlook 2007's
addin OnStartupComplete method.

Thanks.
 
Cool... Thanks Michael. I have given code for reference. Please let me know
if you see any amiss.

Private Sub AddinInstance_OnConnection(ByVal Application As Object, _
ByVal ConnectMode As AddInDesignerObjects.ext_ConnectMode, _
ByVal AddInInst As Object, custom() As Variant)
If Outlook.OlExchangeConnectionMode = olOffline Then
MsgBox "Offline mode"
Exit Sub
End If
End Sub

Thanks.
 
Back
Top