Outlook 2007 VBA Code to Navigate (Open) IMAP Inbox
I am using Outlook to sync mail with GMail over IMAP.
The Outlook default shortcut to go to the Inbox ( Shift+ Ctrl+ I) opens the original Inbox, not the new default IMAP Inbox (which I specified as the new Outlook default email account).
I would like to create a VBA code that I can link to another keypress that will open the IMAP inbox.
a source to share
I think the only way to do this is to create a toolbar button that looks for your IMAP folder and causes it to be displayed on it. Then you can assign a keyboard shortcut to that button and use it. another way would be to use winapi to hook up a shortcut and call you search and display.
76mel
a source to share
-right-click DESKTOP
-click NEW> SHORTCUT
- for OUTLOOK 2003 type (including double quotes): "C: \ Program Files \ Microsoft Office \ OFFICE11 \ OUTLOOK.EXE" Outlook: // SUBSTITUTE-OUTLOOK-INBOX-NAME-HERE / Inbox
- for OUTLOOK 2007 type (including double quotes): "C: \ Program Files \ Microsoft Office \ OFFICE12 \ OUTLOOK.EXE" Outlook: // SUBSTITUTE-OUTLOOK-INBOX-NAME-HERE / Incoming
Hoping this is still true for someone; adding to the dakrum the answer:
Better to add a key /recycle
to the command. Thus, if Outlook is open, a new Outlook window will NOT be created. (Use this if you don't want it to be created.)
The command (for Outlook 2007) looks like this:
"C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" /recycle Outlook://Gmail IMAP/Inbox
Also, dakruhm's answer was very verbose, but he forgot to mention that you need to assign a keyboard shortcut. I checked this and if you use Ctrl+ Shift+ Iit seems like a delay until the command is executed. So I use Ctrl+ Alt+ I, which takes a little getting used to but works much faster.
a source to share