Hi,
This will calculate the progression through the file as it goes along.
Place 2 labels and a commandbutton on a userform. Change the Open command to suit.
Private Sub CommandButton1_Click()
Dim intUnit As Integer
Dim lngNChars As Long
Dim lngNCharsSofar As Long
Dim strTemp As String
With Label1
.TextAlign = fmTextAlignCenter
.ForeColor = RGB(0, 0, 255)
.BackColor = RGB(255, 255, 255)
.Caption = ""
End With
With Label2
.TextAlign = fmTextAlignCenter
.Move Label1.Left, Label1.Top, 0, Label1.Height
.BackColor = RGB(0, 0, 255)
.ForeColor = RGB(255, 255, 255)
.Caption = ""
End With
intUnit = FreeFile
Open "C:\temp\info.txt" For Input As #intUnit
lngNChars = LOF(intUnit)
Do While Not EOF(intUnit)
Line Input #intUnit, strTemp
lngNCharsSofar = lngNCharsSofar + Len(strTemp)
Label2.Width = Label1.Width * (lngNCharsSofar / lngNChars)
DoEvents
Loop
Close intUnit
Label2.Width = Label1.Width
End Sub