View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Tammy[_4_] Tammy[_4_] is offline
external usenet poster
 
Posts: 5
Default Reading from ini file

Thanks Colo - I'll give that a try as well and see how it goes!

Colo wrote in message ...
Tammy, :)
Because an ini file is just a text file, it can be read with Open
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/