i am declaring a variable as integer.but i am passing a string to that variable, then its giving a runtimeerror 13 "type missmatch".can any give an idea how to validate stings and variables.
Why are you passing a string to an integer? You can use the VAL function toconvert the string into an integer.