Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
trickymom trickymom is offline
external usenet poster
 
Posts: 2
Default When sending an email from Word why do I have to add my signature?

When I send an email directly from Word or Excel my signature doesn't
automatically populate like it does in Outlook. Is there any way I can get
it to populate automatically? I have two outlook accounts that I switch back
and forth from and I can never tell which one I am sending email from.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default When sending an email from Word why do I have to add my signature?

Excel and Word are not e-mail applications. If you want to send an e-mail
from within Word and use the Outlook functionality, then you need to call
Outlook from Word using a macro. The following will attach the current Word
document to an Outlook e-mail message c/w signature for the current default
account: http://www.gmayor.com/installing_macro.htm

Sub Send_As_Mail_Attachment()
' send the document as an attachment _
in an Outlook Email message
Dim bStarted As Boolean
Dim oOutlookApp As Outlook.Application
Dim oItem As Outlook.MailItem
On Error Resume Next
'Prompt the user to save the document
ActiveDocument.Save
'Get Outlook if it's running
Set oOutlookApp = GetObject(, "Outlook.Application")
'Outlook wasn't running, start it from code
If Err 0 Then
Set oOutlookApp = CreateObject("Outlook.Application")
bStarted = True
End If
'Create a new mailitem
Set oItem = oOutlookApp.CreateItem(olMailItem)
With oItem
.to = "" 'Insert an email address if all messages go to the same
address
'Set the recipient for a copy if required
.BCC = ""
.Subject = "This is the subject"
'Add the document as an attachment, you can use the _
.displayname property
'to set the description that's used in the message
.Attachments.Add Source:=ActiveDocument.FullName, _
Type:=olByValue, DisplayName:="Document as attachment"
.Display
End With
'Clean up
Set oItem = Nothing
Set oOutlookApp = Nothing
End Sub



"trickymom" wrote in message
...
When I send an email directly from Word or Excel my signature doesn't
automatically populate like it does in Outlook. Is there any way I can
get
it to populate automatically? I have two outlook accounts that I switch
back
and forth from and I can never tell which one I am sending email from.



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default When sending an email from Word why do I have to add my signature?

Excel and Word are not e-mail applications. If you want to send an e-mail
from within Word and use the Outlook functionality, then you need to call
Outlook from Word using a macro. The following will attach the current Word
document to an Outlook e-mail message c/w signature for the current default
account: http://www.gmayor.com/installing_macro.htm

Sub Send_As_Mail_Attachment()
' send the document as an attachment _
in an Outlook Email message
Dim bStarted As Boolean
Dim oOutlookApp As Outlook.Application
Dim oItem As Outlook.MailItem
On Error Resume Next
'Prompt the user to save the document
ActiveDocument.Save
'Get Outlook if it's running
Set oOutlookApp = GetObject(, "Outlook.Application")
'Outlook wasn't running, start it from code
If Err 0 Then
Set oOutlookApp = CreateObject("Outlook.Application")
bStarted = True
End If
'Create a new mailitem
Set oItem = oOutlookApp.CreateItem(olMailItem)
With oItem
.to = "" 'Insert an email address if all messages go to the same
address
'Set the recipient for a copy if required
.BCC = ""
.Subject = "This is the subject"
'Add the document as an attachment, you can use the _
.displayname property
'to set the description that's used in the message
.Attachments.Add Source:=ActiveDocument.FullName, _
Type:=olByValue, DisplayName:="Document as attachment"
.Display
End With
'Clean up
Set oItem = Nothing
Set oOutlookApp = Nothing
End Sub



"trickymom" wrote in message
...
When I send an email directly from Word or Excel my signature doesn't
automatically populate like it does in Outlook. Is there any way I can
get
it to populate automatically? I have two outlook accounts that I switch
back
and forth from and I can never tell which one I am sending email from.



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I hide email adressess when sending a group contact email? hairy bear Microsoft Word Help 1 November 8th 07 08:18 PM
how do I include a signature when sending an email from word? Kerry Microsoft Word Help 6 April 4th 07 07:36 AM
sending an email from word Paul M New Users 2 May 12th 05 05:03 PM
Outlook 2003: No signature included when sending an attachment fr. ksquacker Microsoft Word Help 3 December 30th 04 02:45 PM
When sending email from Word, Silly me Microsoft Word Help 3 December 10th 04 10:41 PM


All times are GMT +1. The time now is 10:13 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"