Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-16-2011, 08:00 AM
JaHoffman JaHoffman is offline Hyperlink to direct email Windows 7 64bit Hyperlink to direct email Office 2007
Novice
Hyperlink to direct email
 
Join Date: Sep 2011
Posts: 1
JaHoffman is on a distinguished road
Default Hyperlink to direct email

I don't know how to phrase this in search engines to convey what I want so I thought I would check with you intelligent people here

I have a form that is filled out by employees, and I would like to have a hyperlink that says "Click here to email to John" and after you click it, it opens outlook (already configured), and just puts the document as an attachment onto the email. Is that possible?
Reply With Quote
  #2  
Old 09-21-2011, 09:24 AM
OTPM OTPM is offline Hyperlink to direct email Windows 7 32bit Hyperlink to direct email Office 2010 32bit
Expert
 
Join Date: Apr 2011
Location: West Midlands
Posts: 981
OTPM is on a distinguished road
Default

Hi
Yes this is possible. Follow the steps below:
Select the cell where you want the command to sit.
Select Insert followed by Field.
Scroll down to MacroButton and click on it.
In the Display Text box enter something like "Send Mail".
In the right hand column scroll down to the command FileSendMail and click on it.
Then click OK.
Then protect your form for Filling in Forms.
The double click on the Send Mail box and your fomr will be attached to an email.
Good luck.
Tony(OTPM)
Reply With Quote
  #3  
Old 07-04-2012, 08:40 AM
Green Goblin Green Goblin is offline Hyperlink to direct email Windows 7 64bit Hyperlink to direct email Office 2010 64bit
Novice
 
Join Date: Jul 2012
Posts: 2
Green Goblin is on a distinguished road
Default

I have a similar problem as JaHoffman above. But using Word 2007 I can find no Field to Insert from the menu list as described by OTPM.

There would seem to be quite a few people with the same dilemma yet I have not found a solution in any of the searches I have done thus far.

Basically, I have created a form which contains several text areas where a person provides comment/remarks. The same form is then forwarded as an attachment to the next person by way of an email hyperlink contained within the form. This process happens 3 times before going back to the originator. All this is contained on one page.
The hyperlinks work fine apart from not attaching the actual form when clicked.

Any help in solving this issue would be greatly appreciated.
Reply With Quote
  #4  
Old 07-05-2012, 06:07 AM
OTPM OTPM is offline Hyperlink to direct email Windows 7 32bit Hyperlink to direct email Office 2010 32bit
Expert
 
Join Date: Apr 2011
Location: West Midlands
Posts: 981
OTPM is on a distinguished road
Default SendMail Macro

Hi All
Please find herewith an example which you can use. The code is contained in the MacroButton so you can copy it to any document to use. Any problems please let me know what the issue is and I will see what I can do to help.
Make sue you save it as a MacroEnabled document and also protect the document for "Filling in Forms".
Good luck.
Kind regards
OTPM
Reply With Quote
  #5  
Old 07-05-2012, 07:10 AM
Green Goblin Green Goblin is offline Hyperlink to direct email Windows 7 64bit Hyperlink to direct email Office 2010 64bit
Novice
 
Join Date: Jul 2012
Posts: 2
Green Goblin is on a distinguished road
Default

Thank you for your reply & assistance.

Is there a way to edit this macro to include a specific e-mail address?
The form I have created is being sent to 3 different people, in turn, for review/remarks in a specified text box then forwarded to the next recipient.
I think I really need to create 3 macros, each with a different e-mail address to make this work?

I have attached the example form.

I appreciate any help you may be able to offer.

Last edited by Green Goblin; 07-06-2012 at 08:55 AM.
Reply With Quote
  #6  
Old 07-05-2012, 08:09 AM
OTPM OTPM is offline Hyperlink to direct email Windows 7 32bit Hyperlink to direct email Office 2010 32bit
Expert
 
Join Date: Apr 2011
Location: West Midlands
Posts: 981
OTPM is on a distinguished road
Default SendMail Code

Hi
Replace the current code on the button with this (cut and paste):

Private Sub Send_Mail_Click()
Dim OL As Object
Dim EmailItem As Object
Dim Doc As Document

Application.ScreenUpdating = False
Set OL = CreateObject("Outlook.Application")
Set EmailItem = OL.CreateItem(olMailItem)
Set Doc = ActiveDocument
Doc.Save
With EmailItem
.To = "otpm@blueyonder.co.uk; tk_hussar@hotmail.com; tk_hussar@hotmail.com" 'CHANGE THESE EMAIL ADDRESSES TO THE ONES YOU WANT TO USE.
.Subject = "Completed Flight Safety Occurence Form"
.Body = "Please find herewith completed Flight Safety Occurence Form for your action."
.Importance = olImportanceNormal 'Or olImprotanceHigh Or olImprotanceLow
.Attachments.Add Doc.FullName
.Send
End With

Application.ScreenUpdating = True

Set Doc = Nothing
Set OL = Nothing
Set EmailItem = Nothing

End Sub

You need to change the email addresses above as indicated. This code will send the emails without activating Outlook. Use a test email address first to test the routine.

Let me know how you get on.

OTPM (Tony)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word macro to email hyperlink pooley343 Word VBA 0 07-20-2011 01:48 AM
direct incoming email to "outlook" folder inbox John Ames Outlook 8 06-25-2011 02:51 PM
Hyperlink to attached file in email message spino Outlook 0 08-05-2010 05:56 AM
cannot access hyperlink in email mdrvo Outlook 1 05-31-2010 12:35 PM
Cannot hyperlink from an email karen1430 Outlook 0 11-25-2007 03:54 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:51 AM.


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