Hi guys,
Wondering if anyone can point me in the right direction on this one.
Dim DOTW
Dim Time
DOTW pulls a day as text from a cell, e.g Wednesday, Friday etc
Time pulls a time serial as text from a cell formatted as 'Time' e.g 12:48:17
Code I have is:
However it only seems to check against the DOTW and not the Time conditional, and only seems to work for the first If statement, if this is true it adjusts the date correctly for the delay on the email, however if its any of the other variables below the first Elseif it still uses that deferral setting.
E.g, if its Wednesday, 12:20:22, it should set the delay for 4pm same day, but it always sets it for 3 days time, even through the DOTW does not = Friday.
Aditionally, >= & <= don't seem to work for the check against the Time, so if its after 3pm and it should defer to the next day it still sets it for today. Is this because of the XX:XX:XX format?
Any help greatly appreciated!
Bookmarks