简体   繁体   English

如何在Excel VBA编辑器中禁用自动退格

[英]How to disable auto backspace in Excel VBA editor

When typing in the editor it puts me back on the end of the last word. 在编辑器中输入时,它会让我回到最后一个单词的末尾。

For example, I want Sub Entername() 例如,我想要Sub Entername()

If I'm not typing quickly enough it goes: SubEnterName() . 如果我输入的速度不够快,那就是: SubEnterName()

How do I turn this off. 我该如何关闭它。

I've heard of this problem before. 我以前听说过这个问题。 Try these steps: 请尝试以下步骤:

  1. Close down excel. 关闭excel。
  2. Open it first it in safe mode (type "excel.exe /s" in the run box). 首先在安全模式下打开它(在运行框中输入“excel.exe / s”)。
  3. Open the VBA Editor and attempt to write a macro. 打开VBA编辑器并尝试编写宏。 The issue should not occur 问题不应该发生
  4. Close down excel and re open it normally 关闭excel并正常打开它

I've heard these steps have fixed this issue before for others. 我听说这些步骤已经解决了其他问题。

This issue is because of a COM Add-In called 'Load Test Report Addin'. 此问题是由于名为“加载测试报告加载”的COM加载项。 to disable it, do the following: go to Excel Options -> Add-Ins and choose Excel COM Add-ins from bottom drop down and press Go... button. 禁用它,请执行下列操作:进入Excel Options - > Add-Ins并选择Excel COM Add-ins从底部下拉,然后按Go...按钮。 then uncheck the 'Load Test Report Addin' item to diable it. 然后取消选中“加载测试报告插件”项目以使其显示。 this will clear the problem! 这样可以解决问题!

Are you using any VBE addins like Smart Indenter or Code Cleaner? 您使用的是Smart Indenter或Code Cleaner等任何VBE插件吗? Remove Code Cleaner and install it only when you are going to use it, then uninstall it when you are done. 删除Code Cleaner并仅在您打算使用它时安装它,然后在完成后卸载它。 I had the same problem and Code Cleaner was the culprit. 我有同样的问题,Code Cleaner是罪魁祸首。 I believe it might be the two of them together that causes it. 我相信它们中的两个可能会导致它。

For reference: 以供参考:

To prevent auto refreshing and deleting back-spaces in VBA editor, you should make sure that all forms or reports that have On-Timer Event Procedures are in design view or the code should be turned-off (ie converted into comments). 要防止在VBA编辑器中自动刷新和删除后退空格,应确保所有具有On-Timer事件过程的表单或报表都在设计视图中,或者应该关闭代码(即转换为注释)。

However, it is better to make sure that all forms and reports are in design view which means none of the On-Timer codes are executing. 但是,最好确保所有表单和报表都在设计视图中,这意味着没有任何On-Timer代码正在执行。

I hope this helps. 我希望这有帮助。

Shafiu. Shafiu。

Do you have AutoSave turned on? 你有自动保存功能吗? I had a file doing this just now. 我刚才有一个文件。 While typing, as SOON as I stopped, AutoSave was working away - (inadvertently, I'm sure) this was causing VBE to kill spaces. 打字时,就像我停止的那样,AutoSave正在消失 - (不经意间,我确定)这导致VBE杀死空间。

Did two tests: -Moved the file off Sharepoint onto my local machine, worked fine -Turned off AutoSave on the Sharepoint copy, worked fine 做了两次测试: - 将Sharepoint上的文件移到我的本地机器上,工作正常 - 在Sharepoint副本上关闭AutoSave,工作正常

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

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