Hi,

Im looking for a way to get all the possible vb6 runtime errors and write them to a text document for later use.

Thanks.

Use a loop to cause all errors and write them to a textbox or variable.

The following code assumes that you have a form with a textbox called Text1 and has the Multiline property set to True:

Private Sub Form_Load()
On Error Resume Next 'To prevent execution break
Text1.Text = "" 'Empty the Textbox
For X = 1 To 9999
Error (X)
Text1.Text = Text1.Text & Err.Number & " : " & Err.Description & VbCrLf
Next X
End Sub