Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2012, 07:43 AM
leilers leilers is offline Adding email button to Word form Windows XP Adding email button to Word form Office 2010 64bit
Novice
Adding email button to Word form
 
Join Date: Jan 2012
Posts: 3
leilers is on a distinguished road
Default Adding email button to Word form

Hi there,

I need to create a button at the end of a MS Word Form that emails the document as an attachment. I'm having trouble figuring out how to do this. Any help would be appreciated.



Windows XP
Microsoft Word 2010
Reply With Quote
  #2  
Old 01-05-2012, 06:25 PM
macropod's Avatar
macropod macropod is offline Adding email button to Word form Windows 7 64bit Adding email button to Word form Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi leilers,

Beyond adding 'ActiveDocument.SendMail' to your form, what issues are you having?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 01-06-2012, 05:20 AM
leilers leilers is offline Adding email button to Word form Windows XP Adding email button to Word form Office 2010 64bit
Novice
Adding email button to Word form
 
Join Date: Jan 2012
Posts: 3
leilers is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Hi leilers,

Beyond adding 'ActiveDocument.SendMail' to your form, what issues are you having?
I admit to not even knowing what 'ActiveDocument.SendMail' is.

I have a form with several questions and text boxes for answers. I would like to be able to create some sort of button at the bottom of the page that when clicked would automatically send the filled out form document to an email address. I'm sure there must be some way to do it via the Developer tab, but I'm not very Visual Basic savvy.
Reply With Quote
  #4  
Old 01-06-2012, 07:36 PM
macropod's Avatar
macropod macropod is offline Adding email button to Word form Windows 7 64bit Adding email button to Word form Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi leilers,

In Word, userforms are a particular kind of form that typically looks vaguely like a Word dialogue box. Since you posted in 'UserForms', I understood that to be what you have, in which case, you'd also have known how to use the vba (macro) statement 'ActiveDocument.SendMail' .

So perhaps we'd better start from first principles: What kind of form are you using? For example a document with formfields, a document with content controls, a document with a userform, a document with ActiveX controls.

Whatever kind of document is is, you'll need some vba (macro) code to automate the emailing. Aside from the basic 'ActiveDocument.SendMail' line I suggested, a fully-fledged macro might look something like the one here:
https://www.msofficeforums.com/vba/1...a-outlook.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 01-09-2012, 06:45 AM
leilers leilers is offline Adding email button to Word form Windows XP Adding email button to Word form Office 2010 64bit
Novice
Adding email button to Word form
 
Join Date: Jan 2012
Posts: 3
leilers is on a distinguished road
Default

What I have is a Word 2010 document that I've added some form style sections to, via the Developer Tab. So, no, I don't think I'm actually using a userform and thus am in the wrong forum.

I've found some macro code that I think will do the trick (and thank you for the link!), but I'm unsure how to add it in to the Word document that I'm working with. On the Developer Tab I see the Visual Basic and Macro buttons, but I'm unclear on how to get the code added in properly.

If this is too noobish for this forum, just point me to the right place and I'll cease bothering you.

Regardless, thank you for all your help!
Reply With Quote
  #6  
Old 01-09-2012, 03:21 PM
macropod's Avatar
macropod macropod is offline Adding email button to Word form Windows 7 64bit Adding email button to Word form Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi leilers,

It's not a question of being 'noobish', but of trying to establish exactly what the issue is that you're seeking help with. If you can post a copy of your document and the code you're proposing to use, I'll see what needs to be done to get them working together.

FWIW, the general procedure for adding vba code to a document is outlined here: http://www.gmayor.com/installing_macro.htm

PS: I've moved the thread to the more general 'Word' forum.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding an Email Button to a Word Document maddoktor Word 0 12-01-2011 01:32 PM
Adding an editable form to website using Word Wyldemaverick Word 0 01-06-2011 10:08 AM
Form button to add more form Jethro Word VBA 0 12-08-2010 09:26 AM
MS Word form - email button floydwood Word VBA 0 05-10-2009 04:11 PM
Picture Button in Outlook Contact Form Ahmad Dorji Outlook 0 02-17-2006 05:06 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:44 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft