Article ID: 198026
Article Last Modified on 11/23/2006
ItemToSend.Attachments.Add Application.ActiveInspector.CurrentItem, 4instead of
ItemToSend.Attachments.Add Item, 4
your e-mail message will include the attachment icon.Sub CommandButton1_Click() ' Saves the current mail item in the Inbox. Item.Save ' Create a new mail message. Set ItemToSend = Application.CreateItem(0) ' Change following line to your e-mail name to send message. ItemToSend.To = "Enter your e-mail name here!" ItemToSend.Subject = "test" ' The following line results in a blank icon for attachment. ' 4 is the olAttachmentType constant olByValue to create a link. ItemToSend.Attachments.Add Item, 4 ' The following line will preserve the icon in the sent message ' if you substitute it for the line above. 'ItemToSend.Attachments.Add Application.ActiveInspector.CurrentItem, 4 ItemToSend.Send End Sub
180826 OL98: Resources for Custom Forms and Programming
182349 OL98: Questions About Custom Forms and Outlook Solutions
Additional query words: OutSol OutSol98 98
Keywords: kbdswnet2003swept kbbug kbdtacode kbpending kbprogramming KB198026