I have been battling with Microsoft Outlook 2003 for a while now. The Problem: I have created several macros (they all accomplish the same thing) and every time I make a button for the macro and add it to the toolbar it disappears after an...
I have been battling with Microsoft Outlook 2003 for a while now.
The Problem:
I have created several macros (they all accomplish the same thing) and every time I make a button for the macro and add it to the toolbar it disappears after an Outlook restart. I originally only had two buttons that i created which actually have stayed like they should. Any new buttons disappear as described above. The macros remain but the buttons disappear!
Background:
I have created a few macros to add text into the subject line. This text includes a one time manual entry into the code as well as the macro grabbing the date and putting it into a specific format before adding it to the subject line. The code can be seen below:
Sub XXX()
On Error Resume Next
Set msg = ActiveDocument.MailEnvelope.Item.GetInspector.Curr entItem
Today = Format(Now(), "yymmdd")
If Not msg Is Nothing Then
msg.Subject = "XXX " & Today + " - " + msg.Subject
End If
msg.Subject = Nothing
End Sub
-This is run on MS Outlook 2003 (using MS Word 2003 as the editor, so it is technically a Word macro).
-Windows XP OS
Things I have tried:
I have tried using the /a switch (which sometimes runs a utility I was told)... didn't work.
I have edited Normal.dot... didn't work
I have deleted Normal.dot and allowed a new one to be created... didn't work
I have repeated the two above but doing it to Email.dot
I have played with the code to see if that changed anything... didn't work
Does anyone know how to fix this problem?
I appreciate the help!