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.
LVL 6
FloraAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin LissOlder than dirtCommented:
It will tell you if there are syntax error in your code.
0
Qlemo"Batchelor", 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.