vba VB6 错误:无法编辑模块

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12726242/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-11 17:59:31  来源:igfitidea点击:

VB6 Error : Can't edit module

vba

提问by Mtok

I have opened an existing project in Visual basic 6.0. But when I try to edit any code block in a form of the project, it gives an error saying;

我在 Visual Basic 6.0 中打开了一个现有项目。但是当我尝试以项目的形式编辑任何代码块时,它给出了一个错误提示;

Can't edit module.

无法编辑模块。

So I can not edit anything. Any ideas ?

所以我不能编辑任何东西。有任何想法吗 ?

回答by Francis Dean

Make sure you haven't opened your project in read only. Go to the project properties and uncheck "Read Only".

确保您没有以只读方式打开您的项目。转到项目属性并取消选中“只读”。

回答by Mac

I also ran into this error when I needed to unbind a VB6 project from Visual Source Safe.

当我需要从 Visual Source Safe 取消绑定 VB6 项目时,我也遇到了这个错误。

As discussed in this article, I needed to delete the Vssver.scc and Mssccprj.scc files and then uncheck the read-only property for each of my files as Alex said.

正如在讨论这篇文章中,我需要删除Vssver.scc和MSSCCPRJ.SCC文件,然后取消只读属性,我的每个文件,亚历克斯说。