Determining text in a cell
I have built a form used by various people. I woull like to make sure they
input some valid form of data into the cell. Upon execution of the macro, I
would like to check the cell for length of characters or somthing like that.
I have tried to use the somthing like:
Dim EHS as String
Dim MyLen as Integer
range("A1").select
EHS = Selection
MyLen = Len(EHS)
If Mylen <2 then
Some type of message or input box....
When I try this I get a Runtime error 13.
Any suggestions?
ZABU
|