Command button to e-mail current document

T

Tim Miller

I'm glad this group has "beginner" in the title.

I have a form template and I'm just trying to put a command button on the
form that e-mails the current document when pressed.
This is what I attached to the click event of the button (from the help):

Private Sub CommandButton1_Click()
Options.SendMailAttach = True
ActiveDocument.SendMail
End Sub


BUT nothing at all happens when I press the button. I'm taking the command
button out of design mode of course. But nothing. I then protect the
document so that the form is ready to be filled in. But still nothing. I
launch the template as a new document, but still nothing.

I've not coded in word, and generally I don't code anyway, but this seems
simple enough. Can someone tell me what I'm missing?

Thanks for any direction!
Tim
 

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