是否有VBA语法高亮显示用于打开和关闭循环以及if语句? [英] Is there VBA syntax highlighting for opening and closing loops and if statements?

查看:113
本文介绍了是否有VBA语法高亮显示用于打开和关闭循环以及if语句?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉,以前是否有人问过这个问题,但是我似乎找不到任何信息.我正在使用VBA来自动执行Word文档,并且我有大量的代码块,其中包含大量的"if else"语句,"do while"循环和"with"语句,这些语句都嵌套在一起.

Sorry if this has been asked before but I can't seem to find any information on this. I am working with VBA for automating word documents and I have this huge block of code with tons of "if else" statements, "do while" loops and "with" statements all nested together.

当我使用其他语言和其他IDE进行编程时,通常可以单击开头的"if"或"while"括号,并获得突出显示的结尾括号.这使得跟踪所有内容变得容易得多. VBA for Word中是否有与此功能相似的东西?我快要跟踪所有内容了!

When I program using other languages and other IDE's, I can normally click the opening "if" or "while" bracket and get the highlighted closing bracket. This makes it a lot easier to keep track of everything. Is there anything close to this functionality in VBA for Word? I am going mad trying to keep track of everything!

推荐答案

我不确定它是否具有您想要的东西,但是用于VBA的橡皮鸭具有一些很棒的功能,可以升级VBA IDE.

I'm not sure it has what you are looking for, but Rubber duck for VBA has some pretty awesome features to upgrade the VBA IDE.

还有两件事可以尝试:

Smart Indenter - this one might actually help you more, as it creates intendation, thus helping to identify structures.

MZ工具-不是免费的,但是有30天的试用期. (我还没有尝试过-如果有任何好处,请回报:))

MZ-Tools - not free, but has a 30 day trial. (I haven't tried this one - report back if it is any good :) )

这篇关于是否有VBA语法高亮显示用于打开和关闭循环以及if语句?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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