Hi Chi11
In your code, E3 and E2 will be identified as variables, not as ranges. Try enclosing them in a RANGE command:
Also, you don't need to select F2, you can just use:
This code works when your date stamp format is 2011/06/07 21:37:34. You have two date stamp formats in your data above. You would need to change the latter one (2011-06-09 01-36-24) to get this to work. The following code loops through every entry in column E, changes the format and then puts the DateDiff result in column F:
Hope this helps.
Cheers, Rob.
Bookmarks