Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Email Lotus Notes

I'm trying to send a spreadsheet via Lotus Notes AND update the body of the
email at the same time. Excell make it easy to address the email, fill in
the subject, and attach the sheet; but difficult to fill in the body.

This is the most recent code I found that will do this:
http://www.excelkb.com/?cNode=1X5M7A. Since it's a few years old, I thought
I'd ask if it's any easier now. (I'm in Excel 2003, so it's highly unlikely
but worth a try.)

Also, any ideas on why it's a simple process in Access but two pages of code
in Excel?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Email Lotus Notes

Hi Stephanie

You use the wrong mail program <g

Maybe CDO is a option for you
http://www.rondebruin.nl/cdo.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"StephanieH" wrote in message ...
I'm trying to send a spreadsheet via Lotus Notes AND update the body of the
email at the same time. Excell make it easy to address the email, fill in
the subject, and attach the sheet; but difficult to fill in the body.

This is the most recent code I found that will do this:
http://www.excelkb.com/?cNode=1X5M7A. Since it's a few years old, I thought
I'd ask if it's any easier now. (I'm in Excel 2003, so it's highly unlikely
but worth a try.)

Also, any ideas on why it's a simple process in Access but two pages of code
in Excel?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default Email Lotus Notes

Ha ha... Can't say I disagree with you there. Now, if I could only convince
my employer of the same........

Thanks Ron, I'll go check it out.

"Ron de Bruin" wrote:

Hi Stephanie

You use the wrong mail program <g

Maybe CDO is a option for you
http://www.rondebruin.nl/cdo.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"StephanieH" wrote in message ...
I'm trying to send a spreadsheet via Lotus Notes AND update the body of the
email at the same time. Excell make it easy to address the email, fill in
the subject, and attach the sheet; but difficult to fill in the body.

This is the most recent code I found that will do this:
http://www.excelkb.com/?cNode=1X5M7A. Since it's a few years old, I thought
I'd ask if it's any easier now. (I'm in Excel 2003, so it's highly unlikely
but worth a try.)

Also, any ideas on why it's a simple process in Access but two pages of code
in Excel?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Email Lotus Notes

Hi,

I have the same problem, life would be so much easier with Outlook.

I had the same problem, but I found the following code in the forum
somewhere, can remember where.

I uses standard string's for everything, so it's quite easy to change them
as required.

Function Send_Report_Email() As Boolean
Dim Full_Mailbox_Name As String

Full_Mailbox_Name = "Your Group Mailbox Here"
Set Session = CreateObject("Notes.NotesSession")
Set Maildb = Session.GetDatabase("G01", "gcc/iscpimgt.nsf")
If Maildb.IsOpen = False Then Maildb.OPENMAIL
Set MailDoc = Maildb.CreateDocument
MailDoc.Form = "Memo"
Set MailDocField = MailDoc.ReplaceItemValue("ReplyTo", Full_Mailbox_Name)
Set MailDocField = MailDoc.ReplaceItemValue("DisplayFrom",
Full_Mailbox_Name)
MailDoc.SendTo = Mail_Recipient
MailDoc.Subject = Mail_Subject
MailDoc.Body = Mail_Body
MailDoc.SaveMessageOnSend = True
If Mail_Attachment < "" And Dir(Mail_Attachment) < "" Then
Set AttachME = MailDoc.CreateRichTextItem("Mail_Attachment")
Set EmbedObj = AttachME.EmbedObject(1454, "", Mail_Attachment,
"Mail_Attachment")
End If
MailDoc.Send 0, MailDoc.SendTo
Maildb.Close
Set Maildb = Nothing
Set MailDoc = Nothing
Set AttachME = Nothing
Set Session = Nothing
Set EmbedObj = Nothing
Send_Change_Report_Email = True
End Function

I'm using Excel 2003 and Notes Client 6.5.4 and it works perfectly.

Another thing I found, again somewhere, for the Mail_Recipient string if you
define the string like below, you can get multiple recipient's :-

Mail_Recipient = ", ")

Hope this is of some help and not to obvious...

--
Cheers...


"StephanieH" wrote:

Ha ha... Can't say I disagree with you there. Now, if I could only convince
my employer of the same........

Thanks Ron, I'll go check it out.

"Ron de Bruin" wrote:

Hi Stephanie

You use the wrong mail program <g

Maybe CDO is a option for you
http://www.rondebruin.nl/cdo.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"StephanieH" wrote in message ...
I'm trying to send a spreadsheet via Lotus Notes AND update the body of the
email at the same time. Excell make it easy to address the email, fill in
the subject, and attach the sheet; but difficult to fill in the body.

This is the most recent code I found that will do this:
http://www.excelkb.com/?cNode=1X5M7A. Since it's a few years old, I thought
I'd ask if it's any easier now. (I'm in Excel 2003, so it's highly unlikely
but worth a try.)

Also, any ideas on why it's a simple process in Access but two pages of code
in Excel?


Reply
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
lotus notes email pdaws Excel Worksheet Functions 2 October 2nd 08 04:08 PM
Send email in Lotus Notes CLR Excel Programming 2 May 29th 08 11:09 AM
Why won't AOL email communicate with lotus notes email? ManInaMaze Excel Discussion (Misc queries) 0 August 3rd 05 02:41 AM
Send email with Lotus Notes Simon Excel Programming 1 May 6th 04 04:56 AM
Sending Email using Lotus Notes Bob[_26_] Excel Programming 1 July 29th 03 07:31 PM


All times are GMT +1. The time now is 12:46 PM.

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

About Us

"It's about Microsoft Excel"