简体   繁体   English

在Dialog.Show上出现“代码已终止”错误

[英]Getting “Code has been terminated” error on Dialog.Show

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

Getting the error message window pointing to line a.show , when i click on button1 . 当我单击button1时,获得指向a.show行的错误消息窗口。 Even if i use application.displayalerts=false , I still get that error. 即使我使用application.displayalerts=false ,我仍然会收到该错误。

Please help 请帮忙

hey at last seems i found the issue. 嘿,看来我终于找到了问题。 i was working on a remote machine, and dont know the reason for this problem, but i changed the remote machine and everything seems to be good. 我在远程计算机上工作,不知道此问题的原因,但是我更换了远程计算机,一切似乎都很好。 Thanks although.. to all – No more attention on this is needed. 不过,谢谢大家。–无需对此给予更多关注。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM