LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Email From Excel/VBA

Hi M,

As a very minor adaptation of one of Ron's examples, try

'============
Sub Mail_small_Text_Outlook()
'You must add a reference to the Microsoft outlook Library
Dim OutApp As Outlook.Application
Dim OutMail As Outlook.MailItem
Dim strbody As String

Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)
strbody = ""

With OutMail
.To = " '<<=== CHANGE
.CC = ""
.BCC = ""
.Subject = ""
.Body = strbody
.Display
End With

Set OutMail = Nothing
Set OutApp = Nothing
End Sub

'<<============


---
Regards,
Norman



"mtm4300 via OfficeKB.com" <u18572@uwe wrote in message
news:628201d44fdd3@uwe...
I have looked at his site. His site talks about how to send data from Excel
to Outlook. I am wanting to just open Outlook and put my name in for the
recipient. The user will then type there message in Outlook. I do not need
to
send any sheets, workbooks, cell values, etc. It sounds very simple, but I
am
having troubles. It only works when I have Outlook open. If Outlook is
closed
and then opened by my macro, the message will not be sent due to an error.
Anyone have a solution?

Norman Jones wrote:
Hi MTM,

Ron de Bruin has an extensive range of sample Outlook code at:

http://www.rondebruin.nl/sendmail.htm

which may provide with ideas for an alternative solution.

---
Regards,
Norman

I am trying to give a user the ability to comment via email. They click
on
my

[quoted text clipped - 19 lines]
declaration.
Any ideas?


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200606/1



 
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
send email to each customer email in excel sheet. -keevill- Excel Discussion (Misc queries) 3 July 17th 08 02:33 PM
Email addresses in Excel need to format for mass email Boomer Excel Worksheet Functions 1 June 9th 06 01:46 PM
Email editor closes when forwarding Excel-embedded email Bambina Setting up and Configuration of Excel 0 March 16th 06 10:45 PM
working on excel document in email saved changes in email not in . butter Excel Discussion (Misc queries) 2 February 20th 06 09:25 AM
body of email disappears when I send an email from Excel ~A Excel Discussion (Misc queries) 0 February 25th 05 10:55 PM


All times are GMT +1. The time now is 09:33 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"