Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Can Kaya   on Jan 11 In MS Office Category.

  
Question Answered By: Viren Rajput   on Jan 11

Cancel returns the text string "False". Here is an amended version of Pascal's
code:

Sub AAAAA()
Dim mywb As Workbook, retval
retval = Application.Dialogs(xlDialogOpen).Show
If retval = "False" Then
MsgBox "Cancelled by user"
Exit Sub
End If
Set mywb = ActiveWorkbook
End Sub

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Opening a workbook, and setting it as a variable Or get search suggestion and latest updates.


Tagged: