Get a str = to 9 characters?

If Len(strVBELN) > 9 Then

This line say if I am greater than 9.  How do I tell this that strVBELN has to be 9 characters, no more, no less?
RWayneHAsked:
Who is Participating?
 
Rgonzo1971Connect With a Mentor Commented:
Hi

If Len(strVBELN) = 9 Then

Regards
0
 
RWayneHAuthor Commented:
I stated this wrong...  I needed it to say if it is anything else other than 9  sorry
0
 
Rgonzo1971Commented:
Hi,

If Len(strVBELN) <> 9 Then

Regards
0
 
RWayneHAuthor Commented:
got it   <>   Thanks for the helps
0
 
RWayneHAuthor Commented:
Thanks.
0
All Courses

From novice to tech pro — start learning today.