问题
Is there a recommended IDE for developing Excel VBA macros that provides reasonable error reporting and code completion?
Currently, I'm using "Microsoft Visual Basic For Application" IDE which comes with Excel 2007, but so far, it is less than ideal.
Even a plug-in to Vim or Emacs will be great.
回答1:
I use and recommend Rubberduck. Description from the website:
Rubberduck is a very active open-source COM add-in project that integrates with the Visual Basic Editor to enable the features every programmer wants to have in their IDE. From unit testing to source control, from code inspections to refactorings, programming in VBA will never be the same.
回答2:
You're pretty much stuck with MS's IDE, but there are some good add-ons available. The two that I use constantly are:
- MZ-Tools
- Smart Indenter
回答3:
Take a look at this SourceTools.xla. It is not a IDE, but an add-in for VBA that allows to save/read the all source files from your project into actual text files for use with source control. I have been using it for at least a year and I am very happy. It even allows direct use if CVS or SVN source control systems for commits/diff, but you don't have to do it from the IDE. And it is free and it comes with the source code unlocked if you want to tweak it.
回答4:
(I realize this question is 7 years old, but I had the same question so I'm just sharing a solution I went with.)
I've just recently started working with VBA with MS Excel and noticed it's really easy to lose all your code with the macros option if something crashed or was deleted.
Atom.io is a great IDE for any language to just easily type some code and save. I already use it for python and some easy scripting languages to check my syntax. I actually found a package for VBScript/VBA syntax highlighting: here!
You can download it right in Atom:
- Click
File -> Settings -> Install - Search
language-vbscript - Click
Install
And you're all set to open, edit, and save .vba files.
来源:https://stackoverflow.com/questions/4228061/recommended-ide-for-vba