Solved

Get a str = to 9 characters?

Posted on 2014-04-08
5
86 Views
Last Modified: 2014-04-08
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?
0
Comment
Question by:RWayneH
  • 3
  • 2
5 Comments
 
LVL 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 39985840
Hi

If Len(strVBELN) = 9 Then

Regards
0
 

Author Comment

by:RWayneH
ID: 39985883
I stated this wrong...  I needed it to say if it is anything else other than 9  sorry
0
 
LVL 48

Expert Comment

by:Rgonzo1971
ID: 39985884
Hi,

If Len(strVBELN) <> 9 Then

Regards
0
 

Author Comment

by:RWayneH
ID: 39985885
got it   <>   Thanks for the helps
0
 

Author Closing Comment

by:RWayneH
ID: 39985889
Thanks.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now