I tried that but it doesn't give the option of saying no
Really ?
Msg = "Are you sure you want to do that?"
Style = vbYesNo + vbCritical + vbDefaultButton2
Title = "Import Excel file"
Response = MsgBox(Msg, Style, Title)
If Response = vbYes Then
MsgBox "You said YES"
Else ' L'utilisateur a choisi Non.
MsgBox "You said NO"
End If
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886