View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Patrick Molloy[_2_] Patrick Molloy[_2_] is offline
external usenet poster
 
Posts: 1,298
Default IsBlank or 6 digits required

ln = LEN(Range("a1")(i, col).Value)
if ln=6 OR ln=0 then
//do something
end if

"Ron" wrote:

Hi all,

How would I edit this line to allow only a blank cell or 6 digits.

If Len(Range("a1")(i, col).Value) < 6 Then

Thank you for your assistance, Ron