Hi,
I am learning how to read & write ini file to Excel Worksheet. I have a VBA code from a book as belows:
ReadIniFile
'**************************************************
Private Function ReadIniFile() As Integer
On Error GoTo ReadIniError
Dim strPath As String
Dim intFNum As Integer
Dim strBuf As String
Dim intRow As Integer
Dim intCol As Integer
'Read INI File and write the data to worksheet
strPath = ActiveWorkbook.Path & "\" & MY_INIFILE
intFNum = FreeFile()
Open strPath For Input Access Read Lock Read As #intFNum
Worksheets("GlobalValues").Unprotect (PASS_SHEET)
Do While Not EOF(intFNum)
------------
End sub
I really don't understand the line 'Open strPath For Input Access Read Lock Read As #intFNum'.
Could any one help me to understand or show me any source (books or web site) which can give me explanation.
Thanks a lot.
Nam
Bookmarks