word outlook

J

Jeroen van Daal

Hello,

I want to create a macro in word thats saves and closes
the word file and put the link automatically (path and
name of the file) to a new email in outlook. If I sent the
email to someone it must must be possible that that
persons knows where to find the file on the network.

Greetings Jeroen
 
D

Doug Robbins - Word MVP

Hi Jeroen,

The first part is easy,

Dim myfilename As String
ActiveDocument.Save
myfilename = ActiveDocument.FullName
ActiveDocument.Close

myfilename will now contain the path\filename of the document. But now you
have to tell us how yo want to go about addressing the email.

See the article "How to send an email from Word using VBA" at:

http://www.mvps.org/word/FAQs/InterDev/SendMail.htm

Please respond to the newsgroups for the benefit of others who may be
interested.

Hope this helps
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top