when you record a macro, the environment tracks the elements you alter and the keys you press and generates macro code based on that input 记录宏时,环境跟踪更改的元素和所按的键,并根据此输入生成宏代码。
as for macros and viruses, visual studio macros are secure in that no macro code runs automatically when a macro project is opened 至于宏和病毒,visualstudio宏是安全的,原因在于打开宏项目时没有任何宏代码自动运行。
debug menu, the macros ide goes into run mode with debugging enabled . if you set a breakpoint anywhere in your macro code, then debugging is automatically enabled 如果插入点不在宏内时按f5,或者选择“调试”菜单上的“启动”,则宏ide将进入启用了调试的“运行”模式。
because the mail merge function in word can allow an access database to run macro code automatically-with no macro protection warnings turned on-malicious users could entice you to open a specially constructed mail merge word document from an e-mail attachment or a link on a hostile web site that might cause arbitrary code to run on your machine 因为word的合并列印功能会允许access在没有开启巨集保护警告的情况下,自动执行巨集程式码。恶意使用者可以藉此安全性漏洞引导您从电子邮件附件或网站连结开启特定架构的word合并列印文件,因而导致某种巨集程式码在您的机器上不受控制地执行。
if, while recording a macro, you happen to manipulate an element of the environment that does not generate macro code, and did not go through a standard environment command such as editing in an edit control in a dialog box you will have a recording gap in your macro, and thus, the macro will not work as expected 如果在记录宏的过程中,碰巧操作一个不生成宏代码的环境元素,并且也没有经过标准环境命令(如在对话框中的edit控件中进行编辑),则宏中会有一个记录间隔,宏由此将不按预期那样工作。