This project automates saving Outlook emails as Markdown notes in an Obsidian vault, inspired by Obsidian-For-Business.
✅ Extracts emails as Markdown with structured YAML frontmatter
✅ Saves emails directly to your Obsidian vault
✅ Task integration: Adds - [ ] email title
at the top of the note
✅ Automatically opens the newly created note in Obsidian
To install and use the macro, follow these steps:
- Open Outlook.
- Go to File → Options → Trust Center → Trust Center Settings.
- Click Macro Settings → Enable all macros.
To allow the macro to run correctly, you need to enable some VBA libraries:
- In the VBA editor, go to Tools → References.
- Find and enable:
- ✅ Microsoft Forms 2.0 Object Library
- ✅ Microsoft VBScript Regular Expressions 5.5
- Press
Alt + F11
to open Outlook's VBA Editor. - In the VBA editor, go to Insert → Module.
- Create three modules and name them exactly:
SaveEmail
SaveUtilities
USER_CONFIG
- Copy and paste the corresponding
.vb
file contents into each module. - Modify the vault path in
USER_CONFIG.vb
to match your Obsidian setup:
vaultPathToSaveFileTo = "C:\Users\YourUsername\Obsidian\Vault\Emails\"
Make sure the path ends with a backslash.
- No Attachment Support: This macro does not currently save or link email attachments.
- No Meeting / Calendar Support: It only works with standard mail items (Class = 43). Meetings or calendar invites are not handled.
- Outlook Desktop on Windows Only: Tested only on Windows versions of Outlook with VBA. Other platforms (Mac, Outlook Web) don’t support these VBA macros.
- Conversation-View Stack: You must select an individual email rather than a conversation stack.
This project builds upon Obsidian-For-Business by @tallguyjenks.