Outlook VBA: Write to a file

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 :-)




2 thoughts on “Outlook VBA: Write to a file

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to top