I'm looking to make a function to validate a year. I want to make a sub(x,y,z) and say that if z is not an integer, a message box pops up. I also want if z is not between x and y inclusive, then a message box pops up. How do i code the sub? Thanks alot.