I believe it was Attachment.DisplayName? That was what I was asking, should the current attachment be something I could retrieve the name of? Perhaps with the Selection object?
I know under MailItem, they have Attachment, and I was hoping to get it that way, but again, I'm obviously doing something wrong with syntax. I'm just not sure what is the best approach to get that info--the attachment currently highlighted in the Attachment field.
Since the attachment is a RichEdit text field, would the Office library have something I can use in retrieving embedded objects from a rich edit field/document?
--
Thanks,
Dennis
I have no idea of how to get which attachment is selected.
Where do you get Attachment.Display? That's not in the Outlook object model.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
What would be the syntax to get the name of the currently highlighted attachment in the attachment field (i.e. the one the cursor is on.)
I can use
oMyOutlook.ActiveInspector.CurrentItem.Attachments.Item(5).Display
to display the 5th attachment, but how do I get the name of the current item in the list, say attachment#14, if 14 is the attachment at the cursor position?
The screen reader I'm working with doesn't see the name as text, because it is an embedded object within the text field, so I want to grab the name with the object model and then announce it to the user that way.
I'm lost on the exact syntax path to get to that data!