Hi!

It is a simple question, but I didn't find any answer anywhere.
How do I set Outlook 2013 to offline mode (via vba)?!

In Outlook 2010 (or earlier) I used the commandbar.findcontrol(,5613) but in Outlook 2013 this commandbar simply does not exist anymore.

I have a code made to connect a .pst, search and find an especific e-mail and open it. I don't know why, but Outlook always crashes if it is online (exchange connection) while code is running. It doesn't happen when Outlook is offline. So... one solution is to put Outlook to sleep.

Does anyone know how to set Outlook 2013 to work offline?

Thank you guys!