How to know Outlook is being started in Offline mode?

Status
Not open for further replies.
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.
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
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

Am Sun, 27 Dec 2009 23:39:01 -0800 schrieb 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.
 
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.

"Michael Bauer " wrote:



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

>

> Am Sun, 27 Dec 2009 23:39:01 -0800 schrieb 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.

> .
>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
F Email being marked as Spam by Gmail and not being visible in Outlook Using Outlook 5
C Outlook 2016/2019 hangs after being open for an extended period Using Outlook 4
GregS 2016 Contact List being managed by Outlook.com? Using Outlook 1
B Outlook - Mail from safe senders list being sent to Spam Folder Using Outlook 0
T Compacting Outlook 2010 OST results in old emails being re-sent Using Outlook 6
M Upgrade in Progress. Your mailbox is currently being optimized as part of upgrade to Outlook 2010 Using Outlook 9
B Outlook being closed causing problems during copy to Excel Outlook VBA and Custom Forms 6
H Preventing the Send button from being clicked on an Outlook Form Outlook VBA and Custom Forms 1
S Calendar items are not being uploaded to outlook.com after copying Using Outlook.com accounts in Outlook 1
R Mailto link inside Outlook 2010 being cached? Using Outlook 1
L Outlook underlining all text after being sent to recipient Using Outlook 3
J How to Stop OutLook from being Installed Using Outlook 1
P VBA Code being completely ignored by Outlook Using Outlook 7
Terry Sullivan Android Phone E-Mails Not Disappearing After Being Deleted in Outlook 2013 Using Outlook 5
B Permissions - Outlook Public Folders Are Being Deleted Using Outlook 1
M Outlook 2007 with BCM - Tasks being created automatically BCM (Business Contact Manager) 1
P How can I stop Outlook 365 duplicating the posts? Using Outlook 0
P How to add a column named categories when searching in Outlook Using Outlook 0
J VBA for outlook to compare and sync between calendar Outlook VBA and Custom Forms 1
D Outlook 2003 Mail Fails Using Outlook 1
K Closing external IMAP email... Outlook 2013 Using Outlook 0
A force outlook to default to MY calendar Using Outlook 3
E Outlook VBA change GetDefaultFolder dynamically Outlook VBA and Custom Forms 6
Owl Export Outlook PDF Attachment as JPG? Outlook VBA and Custom Forms 3
B Seeking help with Outlook rule Using Outlook 2
N Can't create NEW GROUP and add/remove a member from existing Group in Outlook Using Outlook 1
P Outlook tasks keeps changing (updating) dates that I type Using Outlook 2
M I cant send emails via Outlook in my W10 PC. Using Outlook 3
A Outlook Reminders not populating for certain events Using Outlook 2
O Moving "tasks" to inbox in Outlook 2016 Using Outlook 1
S HTML Code Embedded in String Within Open Outlook Email Preventing Replace(Application.ActiveInspector.CurrentItem.HTMLBody From Working Outlook VBA and Custom Forms 4
e_a_g_l_e_p_i Can emails from Gmail be deleted when they are downloaded to Outlook 2010 Using Outlook 1
cbufacchi Outlook 365 Populate custom Outlook Appoint form Outlook VBA and Custom Forms 2
Z Remove GMAIL IMAP account from Outlook 2016 Using Outlook 2
D Wrong email address in Outlook 2003 "From" tab in new outgoing emails Using Outlook 4
B Outlook 365 Populate Outlook Task UDFs from a UDF text string Outlook VBA and Custom Forms 2
witzker Outlook 2019 Pls. add a Prefix for OUTLOOK 2019 here Using Outlook 1
H Outlook 2019 intermittent search results Using Outlook 0
hstein POP3 latest Outlook Using Outlook 0
V Outlook 2003 and Windows 11 Using Outlook 4
J How to import many msg into different public folders in Outlook Outlook VBA and Custom Forms 7
I Outlook for Mac 2019 using on desktop and laptop IMAP on both need help with folders Using Outlook 1
A Reminder duplication Outlook and Outlook.com Using Outlook.com accounts in Outlook 5
F Moving Outlook to new PC Using Outlook 0
mll persistently customise columns in outlook advanced search Using Outlook 3
Ken Pascoe Outlook Categories Quick List Using Outlook 0
M All fonts in Outlook emails display with exaggerated character spacing Using Outlook 3
talla Can't open Outlook Item. Using Outlook 0
C Can't Locate an Unread Message in my Outlook view pane Using Outlook 0
C Outlook 2007 Removing then adding account restores junk email processing Using Outlook 0

Similar threads

Top