• Status: Solved
  • Priority: Medium
  • Security: Private
  • Views: 18
  • Last Modified:

Excel VBA under the Menu "Debug" you see Compile VBAProject. what is this for?

I am a Excel VBA learner.  when i open VBA project with ALT F11.  then under Debug menu, i have something called COMPILE VBA PROJECT.  i would like to know, what is this and what is this used for and for what reason, someone would use this tool?

thanks.
0
Flora
Asked:
Flora
3 Solutions
 
Martin LissOlder than dirtCommented:
It will tell you if there are syntax error in your code.
0
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
... which are not shown immediately while typing, like non-existing subs/functions, undefined vars while having declaration mandatory (which is an option), and so on.
If you do not compile manually, it will happen automatically as soon as code is triggered to execute, and then might fail because of that. So better to do manually while still in the VBA editor ...
0
 
Ramesh VCommented:
Compiling converts the code written in the VBE into code that can be read by Windows.
If you don't do it then it is automatically done when the code is run.
If the code won't compile then it won't run
0
 
FloraAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now