Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
The following procédure opens a dialog box which allows to select a file. I would like to capture the Click on the Cancel button to stop the procedure. How can I do that? Thanks for your help Woody Dim oDialog As Office.FileDialog Set oDialog = XLApp.FileDialog(msoFileDialogFilePicker) 'Opens a dialog MS Office FilePicker oDialog.Filters.Add "Fichiers Excel", "*.xls" 'Select workbook .XLS oDialog.Title = "Sélectionnez le fichier Excel" 'Title of dialog oDialog.AllowMultiSelect = False 'No multiple selection oDialog.Show 'Display the dialog If oDialog.SelectedItems.Count 0 Then NomClasseurXL = oDialog.SelectedItems(1) MsgBox "Le classeur Excel sélectionné est : " & NomClasseurXL End If Set oDialog = Nothing |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cannot seem to Cancel EXCEL App Right Click Event using C# | Excel Programming | |||
Cancel Hyperlink Click | Excel Programming | |||
VBScript to prompt Save on Cancel click | Excel Programming | |||
Cancel button to cancel the whole macro | Excel Programming | |||
how to stop program with loop by click "Cancel" button | Excel Programming |