Visual Basic - URGENTE

Life is soft - evento anual de software empresarial
 
Vista:

URGENTE

Publicado por Isabel (26 intervenciones) el 18/04/2002 22:22:54
Como puedo programar una tarea del outlook desde visual basic?

Gracias.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:URGENTE

Publicado por Joni (18 intervenciones) el 19/04/2002 09:10:33
Puedes acceder al objeto y sus metodos, el tema es buscar la informacion de los mismos. Ejemplo:

Function CreateMail(Destino As String, Titulo As String, _
Mensaje As String, Optional ArchivoAdjunto As String) As Boolean
Public golApp As Outlook.Application
Set golApp = New Outlook.Application

Dim objNewMail As Outlook.MailItem, blnResolveSuccess As Boolean
' Set global Application and NameSpace object variables, if necessary.
If golApp Is Nothing Then
If InitializeOutlook = False Then
MsgBox "Unable to initialize Outlook. "
Exit Function
End If
End If
Set objNewMail = golApp.CreateItem(olMailItem)
With objNewMail
.Recipients.Add Destino
blnResolveSuccess = .Recipients.ResolveAll
If (Not IsMissing(ArchivoAdjunto)) And ArchivoAdjunto <> "" Then .Attachments.Add ArchivoAdjunto, olByValue
.Subject = Titulo
.Body = Mensaje
.Display
End With
End Function
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar