Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi all,
I have done a small task in Excel VBA this morning.How the macros are compiled and whats the compiler in Excel that compile VBA program and where the compiler will be?Is there any MSIL for compiling macros?

Thanks in Advance...
Posted

1 solution

According to this Wikipedia page,
Code written in VBA is compiled to a proprietary intermediate language called P-code (packed code), which the hosting applications (Access, Excel, Word, Outlook, and PowerPoint) store as a separate stream in COM Structured Storage files (e.g., .docx or .xlsx) independent of the document streams. The intermediate code is then executed by a virtual machine (hosted by the hosting application).
Please see: ACC: Visual/Access Basic Is Both a Compiler and an Interpreter.

It has nothing to do with "MSIL". This name is obsolete. You need to use the standardized term CIL (Common Intermediate Language). VBA has nothing to do with this language; you can find it out from the articles referenced above.

—SA
 
Share this answer
 
v2
Comments
Maniraj.M 12-Jan-16 1:53am    
Thank You
Sergey Alexandrovich Kryukov 12-Jan-16 1:59am    
You are very welcome.
Good luck, call again.
—SA
Patrice T 12-Jan-16 2:50am    
+5
Sergey Alexandrovich Kryukov 12-Jan-16 3:15am    
Thank you.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900