Hello, can anyone tell me what is Macro. I heard it has something to do with finding all the word you want replace and you can program it to automatically find the words.
macro in computer science is an abstraction, whereby a certain textual pattern is replaced according to a defined set of rules. The interpreter or compiler automatically replaces the pattern when it is encountered. In compiled languages, macro-expansion always happens at compile-time. The tool which performs the expansion is sometimes called a macro-expander. The term macro is used in many similar contexts which are derived from the concept of macro-expansion, including keyboard macros and macro languages. In most situations, the use of the word "macro" implies expanding a small command or action into a larger set of instructions. The purpose of macros is to either automate frequently-used sequences or enable a more powerful abstraction — but these are often the same thing. Contents 1 Programming macros 2 Application macros 3 Keyboard macros 4 Macro languages 5 Visual Basic for Applications and macro viruses 6 See also Full [link=http://en.wikipedia.org/wiki/Macro]Source wikipedia[/link] It will also expains you, which language you can use for Macro's
In an office application, a macro is a predefined set of instructions that can be saved and executed when the user wants it to. The uses are varied and isn't limited to word processing. For example, you can use a macro in a spreadsheet to highlight a certain set of cells and do something with them, ie. formatting, changing values etc. Usually you can record macro's graphically and the application will create a list of macro commands from the things you do. Or if you have coding experience you can write your own, although macros in MS Office would be different to OpenOffice etc. As per your example, yes it is possible to use a macro for that, but the uses aren't limited to that, Because of this however, there have been certain security issues with unknown documents having malicious macros recorded in them, so be careful about running any from an unknown source. To record your own macro, in MS Office its usually tools>macros>record macro. however there are varying degrees of success.