VeryForgetful
Board Regular
- Joined
- Mar 1, 2015
- Messages
- 242
Hi,
Hoping someone can help me with some vba please.
I'm looking to test a range of A2:A to see if a valid date has been entered.
The data is being pasted from another file and if any of the cells in range does not equal a valid date then Exit Sub, else code carries on running. I've looked into the ISDATE function but not sure how to apply it to a range. I also need the code to ignore any blanks in the range.
My code runs on a worksheet change event if target.column=1 which executes on paste.
Hoping someone can help me with some vba please.
I'm looking to test a range of A2:A to see if a valid date has been entered.
The data is being pasted from another file and if any of the cells in range does not equal a valid date then Exit Sub, else code carries on running. I've looked into the ISDATE function but not sure how to apply it to a range. I also need the code to ignore any blanks in the range.
My code runs on a worksheet change event if target.column=1 which executes on paste.
Last edited: