Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Bonni Garcia   on Nov 23 In MS Office Category.

  
Question Answered By: Dustin Dean   on Nov 23

Untested, but I think this is what you are after:


Dim olApp As Outlook.Application
Dim olTsk As TaskItem
Dim lngRow as Long
Set olApp = New Outlook.Application
Set olTsk = olApp.CreateItem( olTaskItem)


lngRow = 2 `start in row  2

While cells(lngrow,1) <> "" ` stops when you hit first blank cell
With olTsk
.Subject = Cells(lngRow, 1)
.StartDate = Cells(lngRow, 2)
.DueDate = Cells(lngRow, 3)
.Categories = Cells(lngRow, 4)
.Save
End With
lngRow = lngrow + 1
Wend


Set olTsk = Nothing
Set olApp = Nothing

End Sub

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Excel Tasks to Outlook Or get search suggestion and latest updates.


Tagged: