How to know Outlook is being started in Offline mode?

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.
 
M

Michael Bauer [MVP - Outlook]

Please open the object browser (f2), switch from <All libraries> to Outlook,
then enter 'offline' into the textbox,and press enter.

--
Best regards
Michael Bauer - MVP Outlook
Manage and share your categories:
<http://www.vboffice.net/product.html?pub=6&lang=en>

Am Sun, 27 Dec 2009 23:39:01 -0800 schrieb paresh:
 
P

paresh

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.
 

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

Top