ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Visual Basic Text Functions (https://www.excelbanter.com/excel-programming/307307-visual-basic-text-functions.html)

Moiz

Visual Basic Text Functions
 
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



Frank Kabel

Visual Basic Text Functions
 
Hi
variable=len(variable_2)
also use Mid without application.worksheetfunction

--
Regards
Frank Kabel
Frankfurt, Germany

"Moiz" schrieb im Newsbeitrag
...
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




Auric__

Visual Basic Text Functions
 
On Wed, 18 Aug 2004 12:09:00 +0100, Moiz wrote:

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

Mid


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.
--
auric underscore underscore at hotmail dot com
*****
You can do it your own way, if it's done just how I say.

Moiz

Visual Basic Text Functions
 
Thank you

it is working now.

Moiz




All times are GMT +1. The time now is 05:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com