Wow Macro Set Up: How to Create and Use Macros

VBA & macros · Updated November 23, 2026

The “Wow macro” setup refers to creating a macro in World of Warcraft that automates a sequence of actions, such as casting a spell, using an item, or targeting a specific unit, all triggered by a single keypress. To set one up, open the Macro interface by pressing Esc > Macros, click New, name your macro, choose an icon, and then type or paste a macro command into the edit box.

What Exactly Is a WoW Macro?

In World of Warcraft, a macro is a user-defined script that executes one or more slash commands when you press a button. Macros can cast spells, use items, target enemies or allies, send chat messages, and even combine multiple actions with conditional logic. They are stored per character (or per account if you check the “Account-wide” box) and can be placed on your action bars like any other ability.

Macros are written in a simple scripting language that uses slash commands like /cast, /use, and /target. You can also use modifiers like [mod:shift] to make the macro behave differently when you hold down a key, or [@mouseover] to target a unit you are hovering over.

How to Create Your First Macro

Creating a macro is straightforward. Follow these steps:

  1. Press Esc to open the game menu.
  2. Click Macros (or type /macro in the chat).
  3. In the Macro window, click New.
  4. Type a name for your macro (e.g., “Heal”) and select an icon. You can pick a question mark icon to make the macro use the icon of the first spell it casts.
  5. Click Create.
  6. In the edit box below, type your macro commands. For example: /cast [@mouseover,help] Flash Heal; Flash Heal
  7. Click Save and close the window.
  8. Drag the macro icon from the Macro window onto an action bar slot.

That’s it. Now pressing that action bar button will execute your macro.

Common Macro Commands and Syntax

To write useful macros, you need to know the basic commands. Here are the most common ones:

  • /cast – Casts a spell. Example: /cast Fireball
  • /use – Uses an item or a trinket. Example: /use 13 (uses the top trinket slot).
  • /target – Targets a unit. Example: /target [@focus]
  • /assist – Targets the target of your target. Example: /assist [@focus]
  • /startattack – Starts auto-attacking your current target.
  • /stopcasting – Interrupts the current cast.
  • /use – Also used for racial abilities or potions.

You can combine multiple commands on separate lines, and they execute in order. For example:

/startattack
/cast [@pettarget,exists] Bite
/cast Claw

This starts attacking, tells your pet to use Bite if it has a target, and then casts Claw.

Conditional Modifiers: Making Macros Smarter

Conditional modifiers let your macro behave differently based on circumstances. They are placed in square brackets [] before the action. Here are some useful ones:

  • [mod:shift] – Executes if you hold Shift.
  • [mod:ctrl] – Executes if you hold Ctrl.
  • [mod:alt] – Executes if you hold Alt.
  • [@mouseover] – Targets the unit under your mouse cursor.
  • [@focus] – Targets your focus target.
  • [@player] – Targets yourself.
  • [@targettarget] – Targets the target of your target.
  • [help] – Executes if the target is friendly.
  • [harm] – Executes if the target is hostile.
  • [dead] – Executes if the target is dead.
  • [exists] – Checks if the unit exists.
  • [combat] – Checks if you are in combat.

You can combine conditions with commas. For example, [mod:shift,@mouseover,help] means: if Shift is held, the target is the mouseover unit, and that unit is friendly.

A classic example is a heal macro that heals your mouseover if it’s friendly, otherwise heals yourself:

/cast [@mouseover,help,nodead] Flash Heal; [@player] Flash Heal

Choosing the Right Icon and Name

When creating a macro, you can choose a specific icon or use the question mark. The question mark icon automatically displays the icon of the first spell or ability used in the macro. This is handy because it shows cooldown timers and charges on your action bar. To use it, select the question mark icon in the icon picker.

Naming your macro descriptively helps you find it later. You can have up to 18 characters per character-specific macro, and 20 characters for account-wide macros. Account-wide macros are saved to your account and are available on all characters that meet the level requirements (if any). To create an account-wide macro, check the “Account-wide” box at the top of the Macro window.

Common Problems and How to Fix Them

Macros can be finicky. Here are the most frequent issues and their solutions:

  • Macro doesn’t work: Check for typos, missing spaces, or incorrect spell names. Also, ensure the macro is on an action bar and not in a bag.
  • Spell not casting: Some spells have a global cooldown (GCD). If you try to cast two spells that trigger the GCD in the same macro, only the first will cast. You can use /castsequence to queue spells, but it’s not instant.
  • Conditional not working: Make sure you use the correct syntax. Conditions must be in square brackets and separated by commas. Also, the order of conditions matters; the first matching condition is used.
  • Macro works for some characters but not others: Spell names must match exactly, including rank (if you use old-style ranks). For example, “Flash Heal” is correct, but “Flash Heal(Rank 2)” is not.
  • Can’t use macros in combat: Certain macros that change action bars or switch stances are restricted in combat. Also, some addons that create macros may have limitations.

Advanced Macro Techniques: Cast Sequences and Modifiers

For more complex rotations, you can use /castsequence. This macro casts a list of spells in order, and resets after a specified time or when you leave combat. Example:

/castsequence reset=combat/target Corruption, Agony, Siphon Life

This casts Corruption first, then Agony, then Siphon Life, and resets when you enter combat or change targets.

You can also use /run to execute Lua code, but that’s advanced and can be risky. For most players, the built-in macro commands are sufficient.

Frequently Asked Questions

Can I use macros to automate my entire rotation?

Yes, but with limitations. You can use /castsequence to chain a fixed rotation, but it won’t react to procs or cooldowns. For a dynamic rotation, you’d need an addon like GSE (GnomeSequencer) or a more complex Lua macro. However, Blizzard’s terms of use prohibit fully automated gameplay, so any macro that plays the game for you without input is against the rules.

Do macros work in PvP?

Yes, macros are allowed in PvP. However, some addons that automate targeting or actions are restricted. Macros that use /target or /assist are fine, but anything that gives an unfair advantage (like auto-focus on enemy players) may be considered an exploit.

Why does my macro say “Invalid macro text”?

This error usually means there’s a syntax error. Check for missing brackets, commas, or quotes. Also, make sure you’re not using any unsupported commands. If you copied a macro from the internet, verify it’s for the current game version.

Can I use macros to use items and spells together?

Absolutely. You can combine /use and /cast in the same macro. For example, a trinket and a spell:

/use 13
/cast Bloodlust

Just remember that trinkets and spells may share a global cooldown, so they might not fire in the same instant.

Are macros considered cheating?

No. Blizzard officially supports macros and provides the Macro interface in-game. As long as your macro doesn’t automate gameplay to the point where you’re not actively playing, it’s allowed. Using macros for convenience, like target switching or mouseover healing, is standard practice.

Related

Try it: the Column Letter to Number: aA is 27, XFD is 16,384. Converts both ways.

More in VBA & macros

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.