Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 Q's for Word Guru

Status
Not open for further replies.

vb5prgrmr

Programmer
Jul 5, 2002
3,618
US

To begin with I am not sure if I should ask these questions here, but this seemed like a good place to start.

I have recieved a word document that has been used to send an email to multiple recipients. This doc/mail also has other word docs as attachments.

1. What Property/Method do I need to look at to be able to distinguish between a "normal" document (a document that has not been used to send email from) and a doc/mail (a document that has been used to send email with its fields (To, From, Subject etc.) filed in)?

2. If said doc/mail has attachments how to extract them and save them in a directory of my choice?

Actually I have more q's but I am hoping once these are answered I will know the rest.



 

Not even a guess? Need more info? Don't understand the questions? Should I try another forum/site?

Help!
 
You cannot use an actual document to send other documents, only macros can do that.

To see if a document contains macros, open it in Word and press Alt +F11 keys to open the VBA Editor. If you cannot see it, use the View menu to open the Project Explorer.


Regards
BrianB
** Let us know if you get something that works !
================================
 

BrainB,

I beg to differ with you. Start MSWord and the 4th icon from the left on the standard tool bar is the email icon. When you select that you will see the to, from fields appear. When you fill these in word will then allow you to attach other files (including other word documents). Then when you hit send a copy the email is sent (that is if you have a mapi compliant email system on your computer). Then when you close your document it will prompt you to save changes. When you select yes and then open up the document later and hit that icon again you will be able to see who it was sent to and the attachments. When you double click on an attachment the program that created that file will be spawned (like double clicking on a word attachment in outlook). If you open up the word document in notepad you will see that the single document contains the other documents attached and the email address that it was sent to. Unlike the outlook object model which allowes you to retrieve this information for a message that was sent in outlook the word object model does not allow you to retrieve this information for an email sent using word. It does however allow you to automate it with code as you have stated, incorrectly.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top