2

我对人们所说的excel“宏”有一些经验。控制activeX组件的vba代码,对吧?

但是我仍然不知道宏一词的真正含义:)。什么样的代码叫做宏?它是像 vba 或 js 这样实现到程序中的吗?喜欢 vba 到 excel 或 vba 到 autocad 或 js 到 flex?

4

2 回答 2

4

维基百科在Macro下给出了答案。

定义:

该术语起源于宏汇编器,其想法是为程序员提供一系列计算指令作为单个程序语句,从而使编程任务不那么乏味且不易出错。

用法:

使用应用程序的内置宏功能创建的键盘和鼠标宏有时称为应用程序宏。它们是通过执行一次序列并让应用程序记录操作来创建的。也可能存在一种底层宏编程语言,最常见的是一种脚本语言,可以直接访问应用程序的功能。

如果您点击链接,还有更多内容。

于 2009-07-21T02:49:54.203 回答
0

When it comes to MS Office products (Excel, Access, Word, PowerPoint etc), "macro" is VBA (Visual Basic for Applications) code. NOTE: In Access databases macro can also mean another type of automation besides VBA code.

Since you mentioned Excel...I will talk about Excel.

If you suspect (or know) there is an Excel file with macro, try hitting the Alt + F11 key when you have the Excel file open. You should see a VBA screen open. This is where you might be able to see the VBA code (ie, if it is not locked behind a password by the programmer who wrote the VBA code).

Macro (VBA code) is used to automated certain tasks. So in Excel VBA programmer could put a button on a sheet and when you click the button some activities might take place in the Excel file - activities like calculations, copying, pasting, deleting etc..

Read up a little on "recording a macro in Excel".

于 2013-12-31T15:23:45.227 回答