Create a macro
You have used Excel enough to know that there are certain tasks that you repeat over andover again. You now need a way to automate repeated tasks so that tasks can be repeated withminimal interaction by you. In this topic you will create a macro.
is a set of command and programming instructions grouped together as a singlecommand. Each macro is uniquely identified by a macro name. A macro can perform anyrepeatable combination of commands. Macros can be stored in documents or in templates.
Because macros contain programming code, they have the potential to produce harmfuleffects on your system. These effects can be caused inadvertently, by improper macroconstruction. Or, they can be caused deliberately if the macro writer uses the macro code as adelivery method for malicious programs such as computer viruses. To reduce the risk of unsafe macros, Microsoft has constructed a macro security system that which means thatunsafe code in the macro cannot execute, thus protecting your system. Macros are enabled or disabled when you open the document or load the template that contains the macros.You can view or change the macro security level on the Security Level page of the Securitydialog box.Choose Tools
Security.There are four macro security levels.
Security LevelExcel’s Actions when Opening a Document Containing Macros
Very HighOnly macros installed in trusted locations will be allowed to run. Allother signed and unsigned macros are disabled.HighAutomatically enables macros from trusted publishers; automaticallydisables unsigned macros. For signed macros from publishers not onthe trusted list, Excel provides the option to add the publisher to thelist.MediumAutomatically enables macros from trusted publishers; For unsignedmacros, Excel prompts the user to enable or disable the macros. For signed macros from publishers not on the trusted list, Excel providesthe option to add the publisher to the list.LowAutomatically enables all macros. Use this setting only if you have aseparate virus-scanning program or some other local security systemin place.Microsoft
Office Excel 20033