The macros will not work with the top two options that disable all macros or unsigned macros. This snippet opens the windows then offsets each window from the previous window, with the Inbox on top.įirst: You need to have macro security set to the lowest setting, Enable all macros during testing. Set = objInboxĪ "normal" window open on screen. 'Set objInbox = Session.GetDefaultFolder(olFolderInbox) Set objTasks = Session.GetDefaultFolder(olFolderTasks) Set objContacts = Session.GetDefaultFolder(olFolderContacts) Set objCalendar = Session.GetDefaultFolder(olFolderCalendar) If you start up in a different folder, adjust the object names as needed. (Or use an on-screen ruler.)Īs written, this macro assumes you have Outlook starting up in the Inbox (in File, Options, Advanced) and want it maximized. Use Snagit or another image editor to find the position (in pixels) of the upper left corner of each window and the window size. Tip: to get the window size and position, adjust the windows on screen and take a screenshot. When the macro is finished, the Inbox is brought into focus and maximized. Each window can have a unique size and position. This startup macro will open the windows in the order listed when Outlook starts up. But with VBA almost anything is possible.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |