Private Function ExporterConf() Dim i As Integer Dim FileName As String Dim nStart As Long Dim Buffer As String On Error GoTo Cancelled With CommonDialog1 .InitDir = App.Path .Filter = "Fichier Texte (*.txt)|*.txt|Tous les fichiers (*.*)|*.*" .CancelError = True .ShowSave FileName =.FileName End With 'Corps de la fonction.......... On Error Goto ExpErr Exit Function Experr: MsgBox "Fichier texte invalide ou port Com fermé" Cancelled: End Function
"Fichier texte invalide ou port Com fermé"
Experr: If Err <> cdlCancel Then Err.Clear Exit Function End If MsgBox "Fichier texte invalide ou port Com fermé" Exit Function End Function
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question