-
Hey sup? I have a string with over 90 lines and I want to retrieve a whole line from this string! Can anyone help me do that? Don't forget, I have had a few codes before that work properly but if there's a line and then a double space and then there's another line, the code stops to work properly!
-
What is exactly your line delimitter?
André
-
If in your string it's already separated by line,
just put it in a .txt file, and then loop thru the file
line by line.
Code:
Dim free
free=FreeFile
Open "c:\temp.txt" FOR Output As #free
Print #free,yourVariable
Close # free
Open "c:\temp.txt" FOR Input As #free
Do until strLine=desiredLine
Line Input #free,strLine
Loop
Close #free