Hi Gibbo,
It's certainly achievable, but how you do it depends on how the logfile is structured.
Assuming you just want to dump the whole content into the textbox, the easiest way is probably the ReadAll method for textstream files in the Scripting runtime
'a constant for the logfile path Const LOG_FILE_PATH As String = "C:\TEMP\LOGFILE.TXT" 'add a reference to the Scipting Runtime in Tools>References Dim fso As FileSystemObject Dim ts As TextStream Set fso = New FileSystemObject Set ts = fso.OpenTextFile(LOG_FILE_PATH) Me.TextBox1.Text = ts.ReadAll ts.Close Set ts= Nothing Set fso = Nothing






Reply With Quote