0
我的代碼打開工作簿在vba中,但是當我取消或不想打開工作簿時,它不取消或關閉。這裏是我的代碼可以你們,請給我任何建議...如何停止循環當我打開工作簿在vba
Dim shname As String
Dim wb As String
wb = Application.GetOpenFilename
If wb <> "False" Then Workbooks.Open wb (this part is giving me prompt to open workbook)
If wb = "False" Then workbooks.Cancel wb (this part i want it to close the prompt when i click cancel instead of open....)
讓 - 弗朗索瓦有答案,你應該已經標記爲答案... – vacip 2015-07-05 10:03:28