outlook macro to turn off automatic send receive

Hi,

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?

Thanks!
LVL 11
ugebAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CompProbSolvCommented:
The following is a link that may get put you in the right direction:
http://www.vbaexpress.com/forum/archive/index.php/t-36297.html

Are you connecting to an Exchange server?  That appears to raise some issues.
0
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.
0
Qlemo"Batchelor", 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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ugebAuthor Commented:
Nothing worked, no matter my effort. Thanks for trying.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Outlook

From novice to tech pro — start learning today.