Ver Mensaje Individual
  #5 (permalink)  
Antiguo 12/08/2008, 07:20
K_Qseo
 
Fecha de Ingreso: septiembre-2004
Mensajes: 60
Antigüedad: 19 años, 8 meses
Puntos: 2
Respuesta: Como mandar mensaje con excel?????

Gracias por tu ayuda pero ahora que he encontrao como mandar el correo por outlook con este codigo

Sub Mail_with_outlook()
Dim OutApp As Object
Dim OutMail As Object
Dim strto As String, strcc As String, strbcc As String
Dim strsub As String, strbody As String

Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)

strto = "[email protected]"
strcc = ""
strbcc = ""
strsub = "Important message"
strbody = "Hi there" & vbNewLine & vbNewLine & _
"Cell A1 is changed"

With OutMail
.To = strto
.CC = strcc
.BCC = strbcc
.Subject = strsub
.Body = strbody
.Send
End With

Set OutMail = Nothing
Set OutApp = Nothing
End Sub


Se me queda en la bandeja de salida pero lo tengo que abrir y darle a enviar desde el boton

Sabes como hacer que lo envie y no lo deje en la bandeja

Gracias nuevamente