Tech moves fast! Stay ahead of the curve with Techopedia!
Join nearly 200,000 subscribers who receive actionable tech insights from Techopedia.
A macro is an automated input sequence that imitates keystrokes or mouse actions. A macro is typically used to replace a repetitive series of keyboard and mouse actions and are common in spreadsheet and word processing applications like MS Excel and MS Word. The file extension of a macro is commonly .MAC. The concept of macros is also well-known among MMORPG gamers (Massively Multiplayer Online Role-Playing Games) and SEO (Search Engine Optimization) specialists.
By running a macro, users are able to trim down time normally consumed by repetitive tasks. Some macros, like the ones in MS Excel, may also contain functions. An Excel macro is typically created by recording a sequence of keyboard and mouse actions using the Macro Recorder. It can also be created using Visual Basic (because even a recorded macro is made up of Visual Basic code). A stored macro can then be accessed from a menu list or from the toolbar and run by simply clicking. You can also assign a hotkey to the macro for even faster access. Since macros can be called automatically as soon as a digital document is loaded, they have been employed by malicious individuals for creating macro viruses. In the 1990s, unsuspecting users were often terrorized by screens that seemingly displayed characters on their own or mouse pointers that clicked on buttons or highlighted text.