Outlook VBA: Write to a file

Posted by in Software, Tutorial

Note: This is a post transferred from Laurii for historical and consolidation purposes.

I’m not a master in VB (I hate it actually) not in VBA, but it;s quicker to write something like a hack in VBA for outlook than in C#. So, here’s a tiny snapshot on how to write to a file in Outlook (my version is 2003):

This is nice and funny, but you need to pass this as a parameter to functions to ensure that writing is done properly (sometimes at least)… You can do it like this:

See? Easy!

A little experiment: If you find this post and ad below useful, please check the ad out 🙂