LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Sending macro based e-mail with built-in "Heading" and "Text"


Dear friends,

I am desperately trying to figure out how to send an e-mail with updated
worksheet to individual field officers without having to type in the
"SUBJECT" and "MESSAGE or BODY" in the e-mail. (i.e. built-in Heading and
Message)

The only possibility I've found so far is when using a "Routing Slip".
Which is as shown below:

Workbooks("salpietro.xls").HasRoutingSlip = True
With Workbooks("salpietro.xls").RoutingSlip
.Delivery = xlOneAfterAnother
.Recipients = Array("Thomas Windsor", "Silvia Seizt", "Bernard Teuchner")
.Subject = "The Completed Workprogramme"
.Message = "Here is the completed Workprogramme. What do you think?"
End With
Workbooks("salpietro.xls").Route

This works fine as a Routing Message, however, this is not exactly what I
want. I need to send different Worksheets to individual Responsible Officers
and therefore, I do not need to "Routing Slip" function.

===========================

THIS IS WHAT I HAVE PREPARED:

Sub SendMail2()

'Extract and Save Individual WorkSheet in the Public Folder and then Send to
Responsible Officer their individual files separately:

Sheets("Salpietro").Select
Sheets("Salpietro").Copy
ActiveWorkbook.SaveAs Filename:="V:\current tables\Salpietro.xls", _
FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
With Workbooks("Salpietro.xls")
.SendMail Recipients:="David Campbell"
.Subject = "Art 7 Contracts"
.Message = "Here is the Workbook for you. What do you think?"
End With
ActiveWorkbook.Close
Windows("Art7-Update 29Dec04.xls").Activate
End Sub

When I run the macro, I am however, still prompted to provide the e-mail
address, the Subject and the Message. Once I've done that I do receive the
the e-mail but without the "Subject" and the "Message".

Could you please, please help me solve this problem.

Many thanks in advance,
Prabha


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
How do I change the column heading in Excel to display "A" "B" "C Thai New Users to Excel 1 November 30th 07 08:06 PM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
Macro to concatenate into "B1" B2 thru B"x" based on new data in "Col A" Dennis Excel Discussion (Misc queries) 0 July 17th 06 02:38 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


All times are GMT +1. The time now is 08:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"