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
D Gmail mail is being delivered to a different email inbox in Outlook App 2021 Using Outlook 2
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
Retired Geek Outlook for the MAC with Yahoo accounts now very broken Using Outlook 6
S Outlook 2002- "Send" button has disappeared. Help please. Using Outlook 1
L How Stop Outlook Nag Messages Using Outlook 1
TomHuckstep Remove Send/Receive All Folders (IMAP/POP) button from Outlook 365 Ribbon Using Outlook 1
L I Cannot Sign Into My Outlook Account? Outlook VBA and Custom Forms 0
icacream Outlook 2021 - Google calendar in the peek Using Outlook 0
e_a_g_l_e_p_i Question about installing my Gmail account on my iPhone but still getting messages downloaded to my desktop Outlook. Using Outlook 3
F Want to add second email to Outlook for business use Using Outlook 5
kburrows Outlook Email Body Text Disappears/Overlaps, Folders Switch Around when You Hover, Excel Opens Randomly and Runs in the Background - Profile Corrupt? Using Outlook 0
M using excel to sort outlook appointment items Outlook VBA and Custom Forms 4
e_a_g_l_e_p_i MY Outlook 2021 changed the format of the shortcuts for mail, calendar etc. Using Outlook 10
Z Outlook 2021 Outlook new emails notification not working Using Outlook 5
K Changing the Deleted Items location in Outlook 2019 Using Outlook 2
J Outlook 365 Outlook Macro to Sort emails by column "Received" to view the latest email received Outlook VBA and Custom Forms 0
V How to use Comas in a picklist in Outlook forms Outlook VBA and Custom Forms 3
e_a_g_l_e_p_i Question about reinstalling Outlook 2021 Using Outlook 5
A Outlook 365 Outlook (part of 365) now working offline - argh Using Outlook 5
M Outlook Macro to save as Email with a file name format : Date_Timestamp_Sender initial_Email subject Outlook VBA and Custom Forms 0
G LinkedIn tab missing in Outlook 365 (but working in OWA) Using Outlook 0
Jay Freedman Outlook forgets "not junk" marking Using Outlook 0
KurtLass Opening Graphics Attachments in Outlook 2021 Using Outlook 0
P now on office 365 but getting error messages about missing Outlook 2013 cache folders Using Outlook 2
B Outlook config download Outlook VBA and Custom Forms 1
M Short term workaround for when Outlook searching stopped functioning Using Outlook 0
D Outlook 2016 Creating an outlook Macro to select and approve Outlook VBA and Custom Forms 0
L Fetch, edit and forward an email with VBA outlook Outlook VBA and Custom Forms 2
BartH VBA no longer working in Outlook Outlook VBA and Custom Forms 1
L Synch Outlook 365 calendar with iPhone Using Outlook 0
W Can vba(for outlook) do these 2 things or not? Outlook VBA and Custom Forms 2
S Outlook 2016 and Acrobat PDFMaker Office COM Addin Using Outlook 0
M "Attachment Detacher for Outlook" add in, does it update the server copy of the email? Using Outlook 1
M Outlook 365 Rename Outlook Priority Using Outlook 3
R Outlook 2019 accesses POP3 but says its offline (because of IMAP servers?) Using Outlook 0

Similar threads

Top