SBendBuckeye
Programmer
Many of the Outlook97 help items display something like the following code. I believe the Dim statements for them would be as follows, except what do you use for the Outlook Application itself? Should I just use the generic Object?
Dim myOLApp As ???
Dim myItem As MailItem
DIm myAttachments As Attachments
Set myOlApp = CreateObject("Outlook.Application"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Set myItem = myOlApp.ActiveInspector.CurrentItem
Set myAttachments = myItem.Attachments
myAttachments.Item(1).SaveAsFile "C:\My Documents\" & _
myAttachments.Item(1).DisplayName
Thanks in advance for any help you can give me and have a great day!
Dim myOLApp As ???
Dim myItem As MailItem
DIm myAttachments As Attachments
Set myOlApp = CreateObject("Outlook.Application"
Set myItem = myOlApp.ActiveInspector.CurrentItem
Set myAttachments = myItem.Attachments
myAttachments.Item(1).SaveAsFile "C:\My Documents\" & _
myAttachments.Item(1).DisplayName
Thanks in advance for any help you can give me and have a great day!