This is a OneNote macro designed to give you the ability to quickly email the contents of a OneNote Page directly from Outlook. When this macro is run a popup will display all of the OneNote Page options from the OneNote Section (.one file) indicated in the VBA code. To select a OneNote Page simply enter in the leading number that displays in from of its title. Once a leading number is entered an Outlook email will display including all of the contents from the OneNote Page selected. If the OneNote Page contains attachments these will automatically be attached to the Outlook emails that displays. This handling of attachments from within the OneNote Page mirrors the Email Page button you can click from OneNote directly. If you would rather have the attachments embedded into the Outlook email body you can update the VBA code below so the format is Rich Text.
See it in Action!
Watch this video to see this macro in action.***Video coming soon!***
The Code
Here is the code for this macro. Make sure the following References are setup before running it: Visual Basic For Applications, Microsoft Outlook 16.0 Object Library, Microsoft Office 16.0 Object Library, Microsoft Word 16.0 Object Library
Insider Content
Here is the Insider code for this macro. This code will allow you to setup a Word Document to reference that contains the additional content you want pulled into the beginning of your Outlook email! This can contain a simply greeting, a reference to the OneNote Page below, even your Outlook Email Signature (including images). Make sure the following References are setup before running it: Visual Basic For Applications, Microsoft Outlook 16.0 Object Library, Microsoft Office 16.0 Object Library, Microsoft Word 16.0 Object Library