View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Kaak[_64_] Kaak[_64_] is offline
external usenet poster
 
Posts: 1
Default Open a file and read contents


Dim sLineOfText, sFirstName as String

Open "C:\Temp\TextFle.txt" For Input As #1

Do Until EOF(1)

Line Input #1, sLineOfText

sFirstName = Mid(sLineOfText, 38, 15)

msgbox sFirstName

Loop

Close #1


--
Kaak
------------------------------------------------------------------------
Kaak's Profile: http://www.excelforum.com/member.php...fo&userid=7513
View this thread: http://www.excelforum.com/showthread...hreadid=555826