String length of a Variable

L

Lamar

If I assign a value to a variable (i.e. strNumber) then is there a way to
know the number of characters (or text length) in VBA.

i.e. strNumber = 1234, I want to be able know there is four characters (or
text length). if strNumber = 12, I want to know there is 2 characters.

Is there a function that will do that. Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top