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
e_a_g_l_e_p_i Need clarification on 2-Step Verification for Gmail using Outlook 2021 Using Outlook 2
L Opening People Outlook 2021 Using Outlook 0
e_a_g_l_e_p_i Outlook 2021 not letting me setup my Gmail using pop Using Outlook 1
Geldner Problem submitting SPAM using Outlook VBA Form Outlook VBA and Custom Forms 2
P VBA to add email address to Outlook 365 rule Outlook VBA and Custom Forms 0
M Outlook 2016 outlook vba to look into shared mailbox Outlook VBA and Custom Forms 0
P Can no longer sync Outlook with iPhone calendar after iPhone update to 17.1.1 Using Outlook 2
O Outlook - Switch from Exchange to IMAP Using Outlook 0
e_a_g_l_e_p_i Is it possible to have a reminder in Outlook 2021 for every 90 days Using Outlook 3
farrissf Outlook 2016 Optimizing Email Searches in Outlook 2016: Seeking Insights on Quick Search vs Advanced Search Features Using Outlook 0
C Advanced search terms for "Outlook Data File" Using Outlook 1
N Reply to Outlook messages by moving messages to a specific Outlook folder Outlook VBA and Custom Forms 1
O How to find out the domain and server settings that my Outlook is using? Using Outlook 2
A Outlook 365 (OutLook For Mac)Move "On My Computer" Folder Items From Old To New Mac Computer Using Outlook 3
H Integrating Alexa & Outlook Pro 2021 Using Outlook 2
Z Automatically adjust Outlook Reading Pane from bottom to right depending on portrait or landscape window Using Outlook 1
Rupert Dragwater Background colors not saving in Outlook 365 Using Outlook 15
petunia Outlook tasks module sunsetting? Exchange Server Administration 3
G Save emails as msg file from Outlook Web AddIn (Office JS) Outlook VBA and Custom Forms 0
D Outlook VBA forward the selected email to the original sender’s email ID (including the email used in TO, CC Field) from the email chain Outlook VBA and Custom Forms 3
U Outlook 2021 not showing contact cards in Searches Using Outlook 1
C Outlook - Macro to block senders domain - Macro Fix Outlook VBA and Custom Forms 2
H Outlook 365 O365 outlook calendar item editing Using Outlook 1
J Outlook 365 html inline images Using Outlook 0
Rupert Dragwater How to get Outlook 365 to open from websites Using Outlook 5
S Why do I have to close and reopen Outlook for macros to work? Outlook VBA and Custom Forms 2
J Outlook 2021 ScanPST errors (yet again ... sorry): repair button missing Outlook 2021 Using Outlook 0
HarvMan Outlook 365 - Rule to Move an Incoming Message to Another Folder Using Outlook 4
K Moved pst to new computer, now Gmail not coming into Outlook Using Outlook 7
S Email Macros to go to a SHARED Outlook mailbox Draft folder...NOT my personal Outlook Draft folder Using Outlook 2
F Running Scripts in Outlook 2021 Using Outlook 0
Nufc1980 Outlook "Please treat this as private label" auto added to some emails - Help. Using Outlook 3
S Outlook 2019 Custom outlook Add-in using Visual Studio Outlook VBA and Custom Forms 0

Similar threads

Top