Thanks a lot
its almost resolved just one last query
i m doing this
VB Code:
  1. for i = 1 to ubound(x)
  2.  
  3.  
  4. next i
  5.  Exit Sub
  6.  
  7. errorhandler:
  8.    Open App.Path & "\Errors.txt" For Output As FB
  9.         Debug.Print "An Error has occured at Block " & z / 60&; vbNewLine
  10.        
  11. Resume Next
  12. 'Close FB
  13. End Sub

this is code of my error handler , and if my program gets more then one error , this Errors.txt only shows me the last error , is there way i can put whole error log in this file ?