Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Jay
You can just test for it. If it's empty do you want to skip the whole row? Is it if any cells are empty, or one in particular, or is just a blank row? These lines will skip the Task creation of the cell in column A is empty. Set olApp = CreateObject("Outlook.Application") For i = 4 To s.Range("A4").CurrentRegion.Rows.Count Set c = s.Cells(i, 1) If Not IsEmpty(c.Value) Then Set olTsk = olApp.CreateItem(olTaskItem) With olTsk .StartDate = c.Value .Subject = c.Offset(0, 1).Value .Body = c.Offset(0, 2).Value .DueDate = c.Offset(0, 5).Value .Status = olTaskInProgress .Importance = olImportanceNormal .Display End With End If Next Set olTsk = Nothing Set olApp = Nothing End Sub -- Dick Kusleika Excel MVP Daily Dose of Excel www.dicks-blog.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I create Microsoft Office Outlook Task in Excel 2007? | Excel Discussion (Misc queries) | |||
Excel macro to create Outlook e-mail | Excel Discussion (Misc queries) | |||
How can i have Excel automatically set an Outlook task? | Excel Discussion (Misc queries) | |||
Can I create a button in Excel that generates a task in Outlook? | Excel Discussion (Misc queries) | |||
import outlook task to excel | Excel Programming |