• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 322
  • Last Modified:

outlook macro to turn off automatic send receive


Is there a way to record macros in Outlook 2013?

If not, how can I write an outlook macro to turn off automatic send receive and assign it to an icon on the ribbon?

  • 2
1 Solution
The following is a link that may get put you in the right direction:

Are you connecting to an Exchange server?  That appears to raise some issues.
ugebAuthor Commented:
Yeah, I tried that (macro ScheduledSendReceiveToggle), but it doesn't work for v. 2013.   It was written for v. 2003 and in 2013 it complains of variables not being set.

This is not using an exchange server.
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
Checked the code with O2010, and no issues. O2013 is not really different, AFAIK. Maybe posting the error message will help.
Sub ScheduledSendReceiveToggle()
Dim ctl As Office.CommandBarControl
  Set ctl = ActiveExplorer.CommandBars.FindControl(, 6867)
  If ctl.Enabled Then ctl.Execute
End Sub

Open in new window

As soon as that works, you can put a button in your Quick Launch bar. Modifying the Ribbons is a PITA.
ugebAuthor Commented:
Nothing worked, no matter my effort. Thanks for trying.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now