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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSWord - Attach email address to command button 1

Status
Not open for further replies.

sallys

Programmer
Jan 24, 2001
3
AU
I want users to be able to press various command buttons throughout a word document, which will pass it to the next user as an email attachment. I have tried using the SendMail method with the option SendMailAttach, but can't manage to attach an email address. Is this possible or is there a better way? (I am aware of the File SendTo etc from the menu but wish to automate the task).
 
I'm not sure what you are trying to send. If it's a document you are sending, give a button the following properties:


Private Sub CommandButton1_Click()
ActiveDocument.SendMail
End Sub


Hope it helps... QUOTE OF THE DAY
I will prepare, and some day my chance will come.
Abraham Lincoln

<%
Jr_Clown :eek:)
%>
 
Thanks. I am sending the document on which the buttons appear. I managed to get as far as the code you've suggested, but i want to attach an email address, rather than the user having to select from the address book.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top