newnoviceuser
Programmer
this is the code
Sub email()
Dim TextLine
Dim appOutLook As Outlook.Application
Dim MailOutLook As Outlook.MailItem
Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
With MailOutLook
.To = "tome@colla.com"
.Subject = "report for " & gtdate()
.Attachments.Add "C:\report.rtf"
.Send
End With
very simple code and will send sometimes immediately and sometimes just goes in the outbox and waits. how can i make sure it sends it out? these reports are needed daily by several people. thanks in advance
Sub email()
Dim TextLine
Dim appOutLook As Outlook.Application
Dim MailOutLook As Outlook.MailItem
Set appOutLook = CreateObject("Outlook.Application")
Set MailOutLook = appOutLook.CreateItem(olMailItem)
With MailOutLook
.To = "tome@colla.com"
.Subject = "report for " & gtdate()
.Attachments.Add "C:\report.rtf"
.Send
End With
very simple code and will send sometimes immediately and sometimes just goes in the outbox and waits. how can i make sure it sends it out? these reports are needed daily by several people. thanks in advance