LearnFrench
10-14-2008, 02:48 PM
I'm not a programmer - I'm just using a script that I ran across somewhere on the Internet. I'm using Outlook 2003 on XP. So far this script renames the subject, adds a quick line to the body and then sends the message. I would like it to add the file names of the attachments (plural) to the body after my "inspirational message." Bonus: Can I point my current olItem.Body at a text file? Thanks so much for you help.
Sub ChangeSubject()
Set oActiveExplorer = Application.ActiveExplorer
MsgBox TypeName(oActiveExplorer.Selection)
Set oSelection = oActiveExplorer.Selection
For I = 1 To oSelection.Count
Set olItem = oSelection.Item(I)
olItem.Subject = "Your weekly inspirational message"
olItem.Body = "Inspirational Message"
olItem.Send
Next
End Sub
Sub ChangeSubject()
Set oActiveExplorer = Application.ActiveExplorer
MsgBox TypeName(oActiveExplorer.Selection)
Set oSelection = oActiveExplorer.Selection
For I = 1 To oSelection.Count
Set olItem = oSelection.Item(I)
olItem.Subject = "Your weekly inspirational message"
olItem.Body = "Inspirational Message"
olItem.Send
Next
End Sub