I have written code to send a reminder to outlook based on dates on Col C (I use format dd/mm/yyyy)
The problem is that I have dates and text In Col C
I need the code amended so that where there is either no date or text, the reminder is not send to outlook. Where there is text, reminders are sent to the outlook calender
It would be appreciated if someone can kindly amend my code
Sub Outloook_Reminders() Sheets("renewals").Select Dim startRow As Long, endRow As Long, ctr As Long startRow = 2 endRow = Cells(Rows.Count, 1).End(xlUp).Row For ctr = startRow To endRow With CreateObject("Outlook.application").createitem(1) On Error Resume Next .Start = DateValue(Range("C" & ctr)) + TimeValue(Range("C" & ctr)) .Duration = CLng(Range("D" & ctr)) ' 30 .Subject = CStr(Range("E" & ctr)) ' subject text .ReminderSet = True .Save End With Next End Sub