Visual Basic Text Functions

  • Thread starter Thread starter Moiz
  • Start date Start date
M

Moiz

I need to manipulate text variables using Visual Basic programming

what is thestatement for:

Len - length of variable
Mid

I tried:

variable = Application.WorksheetFunction.Len (Variable)
but it does not work.

Moiz
 
Hi
variable=len(variable_2)
also use Mid without application.worksheetfunction
 
I need to manipulate text variables using Visual Basic programming

what is thestatement for:

Len - length of variable

x = Len(y$) 'x is a numeric variable

x$ = Mid(y$, start, length) 'start and length are both integers
I tried:

variable = Application.WorksheetFunction.Len (Variable)
but it does not work.

That's because they're not worksheet functions.
 

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

Back
Top