Outlook 2007 Add In - Visual Studio 2008 - Visual Basic
Posted on 2011-09-13
I've been struggling to get certain parts of a visual basic script to run after creating the add in.
The add in that I've created is ready and working correctly. The only issue that I have is that when I run the add in, i am not able to read and append the contents of the subject line of the email that is being composed.
All the coding examples that I have seen so far start by referencing Application.CurrentItem, but the button's on click event is stored in a Ribbon.vs file and not the ThisAddIn.vs file.
Would anybody be able to help me to get my coding to read from the subject line and either append text or remove text if it is found.
I just need the few lines that will get the current subject of a new mail item being composed into a string.