ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Parse string (https://www.excelbanter.com/excel-programming/357830-parse-string.html)

loopoo[_29_]

Parse string
 

Hello!

I am quite new to Excel VBA. Can anyone please help me with this issue
I want to parse a string character by character just like an array.

Is there a function for that??

Thanks in advance,
Chri

--
loopo
-----------------------------------------------------------------------
loopoo's Profile: http://www.excelforum.com/member.php...fo&userid=2879
View this thread: http://www.excelforum.com/showthread.php?threadid=52911


Ardus Petus

Parse string
 
dim i as integer
dim str as string
dim car as string
for i = 1 to len(str)
car = mid(str,i,1)
msgbox car
next i


Cordialement,
--
AP


"loopoo" a écrit dans
le message de ...

Hello!

I am quite new to Excel VBA. Can anyone please help me with this issue:
I want to parse a string character by character just like an array.

Is there a function for that??

Thanks in advance,
Chris


--
loopoo
------------------------------------------------------------------------
loopoo's Profile:

http://www.excelforum.com/member.php...o&userid=28792
View this thread: http://www.excelforum.com/showthread...hreadid=529118




loopoo[_30_]

Parse string
 

Thanks a lot for your help.

That was exactly what I was looking for.

Chris.


--
loopoo
------------------------------------------------------------------------
loopoo's Profile: http://www.excelforum.com/member.php...o&userid=28792
View this thread: http://www.excelforum.com/showthread...hreadid=529118



All times are GMT +1. The time now is 01:35 PM.

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