R
ryguy7272
Part of my code is pasted below:
Dim objApp As Object
Dim OutTask As Object
Set objApp = CreateObject("Outlook.Application")
Set OutTask = objApp.CreateItem(olTaskItem)
With OutTask
.StartDate = Cells(i, 5).Value
.Subject = Cells(j, 3).Value
.Body = Cells(k, 1).Value & " - " & Cells(l, 4).Value
.Importance = olImportanceHigh
.Display
.ReminderSet = True
'.ReminderTime = [NextPM]
'.DueDate = [NextPM]
'.ReminderPlaySound = True
'.ReminderSoundFile = "C:\WINNT\Media\Ding.wav"
.Save
.Close
End With
I created a loop to run through Excel and place certain data from certain
ranges into a series of Outlook Tasks. Everything works fine, I am just
trying to determine how to close the Task window once the data has been
populated into each Task. It must be something quite simple; just can't
quite figure it out. Please help.
Regards,
Ryan---
Dim objApp As Object
Dim OutTask As Object
Set objApp = CreateObject("Outlook.Application")
Set OutTask = objApp.CreateItem(olTaskItem)
With OutTask
.StartDate = Cells(i, 5).Value
.Subject = Cells(j, 3).Value
.Body = Cells(k, 1).Value & " - " & Cells(l, 4).Value
.Importance = olImportanceHigh
.Display
.ReminderSet = True
'.ReminderTime = [NextPM]
'.DueDate = [NextPM]
'.ReminderPlaySound = True
'.ReminderSoundFile = "C:\WINNT\Media\Ding.wav"
.Save
.Close
End With
I created a loop to run through Excel and place certain data from certain
ranges into a series of Outlook Tasks. Everything works fine, I am just
trying to determine how to close the Task window once the data has been
populated into each Task. It must be something quite simple; just can't
quite figure it out. Please help.
Regards,
Ryan---