Prevost
Board Regular
- Joined
- Jan 23, 2014
- Messages
- 198
Hi There. I have a large column of cells that contain a time value (just the time in HH:MM) and I would like to delete all the cell rows that are not in the time range from 8:00AM to 5:00PM. I am struggling with checking time values through VBA and checking to see if the time falls in a certain range.
I wanted to use something like:
If 5:00PM < cell < 11:59PM OR 12:00AM < cell < 8:00AM then
(delete cell row)
end if
I don't know how to check for the time range of the cell.
Any help or suggestions are appreciated. Thanks!
I wanted to use something like:
If 5:00PM < cell < 11:59PM OR 12:00AM < cell < 8:00AM then
(delete cell row)
end if
I don't know how to check for the time range of the cell.
Any help or suggestions are appreciated. Thanks!