Function GetFirstLine(MyFile As String) As String If Dir(MyFile) <> "" Then Open MyFile For Input As #1 Line Input #1, GetFirstLine Close End If End Function