Excel中的宏在何处以及如何编译? [英] Where and How Macros in Excel are Compiled?

查看:267
本文介绍了Excel中的宏在何处以及如何编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

今天早上我在Excel VBA中完成了一项小任务。如何编译宏并编写Excel中编译VBA程序的编译器以及编译器将在哪里?是否存在?任何用于编译宏的MSIL?



先谢谢...

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...

推荐答案

用VBA编写的代码编译成一种称为P代码(打包代码)的专有中间语言,托管应用程序(Access,Excel,Word,Outlook和PowerPoint)作为单独存储独立于文档流的COM结构化存储文件(例如,.docx或.xlsx)中的流。然后中间代码由虚拟机执行(由托管应用程序托管)。
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).

请参阅: ACC:Visual / Access Basic既是编译器又是口译员



它有与MSIL无关。这个名字已经过时了。您需要使用标准化术语 CIL (通用中间语言)。 VBA与这种语言无关;你可以从上面引用的文章中找到它。



-SA


这篇关于Excel中的宏在何处以及如何编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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