View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Colo[_94_] Colo[_94_] is offline
external usenet poster
 
Posts: 1
Default Reading from ini file

Tammy, :)
Because an ini file is just a text file, it can be read with Ope
statment.

Code
-------------------

Sub test()
Dim fn As Long
Dim tmp As String
fn = FreeFile
'Change here to the file path
Open "c:\test.ini" For Input As fn
Do While Not EOF(fn)
Line Input #fn, tmp
Debug.Print tmp
Loop
Close fn
End Sub

-------------------


--
Message posted from http://www.ExcelForum.com