获取“代码已被终止” Dialog.Show上的错误 [英] Getting "Code has been terminated" error on Dialog.Show

查看:108
本文介绍了获取“代码已被终止” Dialog.Show上的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

sub button1_click
Dim a as FileDialog
set a=Application.FileDialog(msoFileDialogPicker)
a.show
end sub





当我点击button1时,获取指向a.show行的错误消息窗口。即使我使用application.displayalerts = false,我仍然会收到该错误。



请帮助



Getting the error message window pointing to line a.show, when i click on button1. even if i use application.displayalerts=false, i still get that error.

Please help

推荐答案

你的对话框初始化中有一个拼写错误,它应该读取msoFileDialogFilePicker而不是msoFileDialogPicker。
You have a typo in your dialog initialization, it should read msoFileDialogFilePicker not msoFileDialogPicker.


这篇关于获取“代码已被终止” Dialog.Show上的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆