Create a Send/Receive macro in Outlook 2010
Posted on 2011-09-23
I hope you can help.
I know how to assign a macro to a custom ribbon but what I don't know is the correct code/syntax to achieve the desired outcome when a custom button is executed!
I have a couple of Send and Receive Groups defined in Outlook 2010. One of them will only work when I'm connected via VPN to the office and the other will only work when I'm NOT connected via VPN. What I'd ideally like is to have a couple of custom buttons that executes either Send/Receive Group 1 or Group 2. Can you offer me some sample vba macro code that would achieve this?
Many thanks in advance for any help you feel able to give.