I found this code posted a few times on this siteThere is a call to OpenFile but the code is missing. Any idea what it could be?Code:Private Sub mnuFileOpen_Click () ' CancelError is True. On Error GoTo ErrHandler ' Set filters. CommonDialog1.Filter = "All Files (*.*)|*.*|Text _ Files (*.txt)|*.txt|Batch Files (*.bat)|*.bat" ' Specify default filter. CommonDialog1.FilterIndex = 2 ' Display the Open dialog box. CommonDialog1.ShowOpen ' Call the open file procedure. OpenFile (CommonDialog1.FileName) Exit Sub ErrHandler: ' User pressed Cancel button. Exit Sub End Sub


Reply With Quote
