Logitech Macro Guide: Set Up G HUB & Options+

VBA & macros · Updated November 23, 2026

Logitech macros let you turn a single button press into a sequence of keystrokes, mouse clicks, or both. This works across their gaming gear (via G HUB) and productivity mice/keyboards (via Logitech Options+). You can automate repetitive tasks, speed up game combos, or assign complex shortcuts to one key. This guide covers both software packages step by step.

What You’ll Need

  • A supported Logitech device: G-series gaming mice, keyboards, or headsets for G HUB; MX, Master, or M-series productivity devices for Options+.
  • Logitech G HUB (for gaming devices) or Logitech Options+ (for productivity devices) installed. Download from logitech.com/support.
  • Windows 10/11 or macOS. Steps shown are for Windows; Mac differences are noted where they matter.
  • Admin rights on your computer to install the software.

Step-by-Step

Using Logitech G HUB (Gaming Devices)

  1. Open G HUB and select your device from the home screen. If you don’t see it, click the gear icon (Settings) and choose “Device” to confirm it’s connected.
  2. Click the “Assignments” tab on the left side of the device screen. This shows all programmable buttons/keys.
  3. Pick a button you want to macro. Click it, then in the “Assign a Command” panel that appears, choose “Macros” from the left list.
  4. Click “New Macro” at the bottom. Name it something clear like “Double-Click” or “Chat Emote.”
  5. Set the macro type: choose “No Repeat” (runs once), “Toggle” (press once to start, again to stop), or “Repeat While Held” (loops as long as you hold). For most macros, start with “No Repeat.”
  6. Record your macro: click the red “Record” button, then perform the keystrokes or mouse clicks you want. For example, press Ctrl+C, then Ctrl+V. Click “Stop Recording” when done.
  7. Edit timings if needed: after recording, you’ll see a timeline. Drag the delay markers between actions to adjust speed. For gaming, 50–100 ms between actions is common; for typing, 10–30 ms works.
  8. Click “Save” to store the macro, then click the button you’re assigning it to again and select your macro from the list. It’s now active.
  9. Test it: press the button. If it doesn’t work, check that the profile is active (top of G HUB window) and that “Onboard Memory” mode isn’t overriding your assignments.

Using Logitech Options+ (Productivity Devices)

  1. Open Options+ and click on your device (mouse or keyboard) from the left sidebar.
  2. Click the button you want to customize on the device diagram. For mice, this is often a side button; for keyboards, any key.
  3. In the menu that appears, choose “Keystroke Assignment” (or “Shortcut” on some versions). This opens a small window.
  4. Type the key sequence you want to trigger. For example, type “Ctrl+Shift+T” to reopen a closed tab. You can also add mouse clicks by clicking the mouse icon in that window.
  5. Add delays if needed: click the “+” between steps in the sequence and choose “Delay” to set a pause (e.g., 500 ms). This is useful for multi-step actions like “copy, wait, paste.”
  6. Click “Save” and the assignment is applied immediately. Test by pressing the button.

Common Mistakes

  • Recording mouse movements instead of clicks: G HUB records cursor movement only if you enable it; by default it records clicks but not movement. If you want movement, check “Record Mouse Movement” before recording.
  • Forgetting to set repeat mode: A macro set to “Repeat While Held” will spam actions if you hold the button too long. Use “No Repeat” for single actions.
  • Using the wrong software: G HUB won’t recognize MX Master mice, and Options+ won’t work with G502. Check your product’s support page.
  • Not saving to onboard memory: If you use your device on another computer, macros stored only in G HUB won’t transfer. Use “Onboard Memory” mode in G HUB settings to store macros on the device itself.
  • Overlapping key assignments: If you assign a macro to a key that’s already used by the OS (like Alt+F4), it may conflict. Choose a less common key.

Tips

  • Use delays for reliable automation: For actions that depend on window loading (e.g., copy, then paste into a different app), add a 200–500 ms delay between steps.
  • Create per-game profiles: In G HUB, click “Profiles” at the top, then “Add Profile” to make a specific macro set for a game or app. Switch profiles automatically by selecting the app under “Link to Application.”
  • Combine macros with G-Shift: In G HUB, G-Shift (hold a designated button) doubles the number of assignable buttons. Assign G-Shift to a side button, then assign different macros to other buttons while holding it.
  • For productivity, use smart actions: In Options+, some devices support “Smart Actions” (a newer feature) that let you combine keystrokes, text, and app launches in one trigger. Check if your device has this tab.
  • Backup your profiles: In G HUB, go to Settings > Backups to export your profiles. In Options+, use the cloud sync with your Logitech account.

Troubleshooting

  • Macro doesn’t trigger at all: First, confirm the software is running (check system tray/menu bar). Then verify the button is actually assigned: click the button in the software and see if your macro name appears. If not, re-assign it. Also check if “Onboard Memory” mode is on—if so, the software assignments are ignored. Turn it off in G HUB settings.
  • Macro triggers but does nothing: The target app may block synthetic keystrokes (some games and banking apps do). Try adding a small delay at the start. Also test the macro in Notepad to see if it types correctly—if it does, the issue is the app.
  • Macro repeats too fast or too slow: Edit the macro and adjust the delay values. For G HUB, click the time between recorded actions and type a new value. For Options+, remove and re-add delay steps.
  • Device not showing in software: Unplug and replug the USB receiver or cable. For Bluetooth devices, forget and re-pair. Update the software to the latest version. If it still fails, try a different USB port.
  • Macro works in one app but not another: Some apps require administrator privileges, and macros may not send keystrokes to elevated windows. Run both the app and Logitech software as administrator (right-click > Run as administrator).
  • After a reboot, macros disappear: Ensure the software starts automatically: in G HUB, go to Settings > General and enable “Start on system startup.” In Options+, check the app’s preferences for “Launch at login.”

Frequently Asked Questions

Can I use the same macro on both gaming and productivity devices?

No. G HUB and Options+ are separate programs and don’t share macros. You’ll need to recreate the macro in each software for the respective device.

Will macros work in games that ban them?

Some competitive games consider macros cheating, especially if they automate multiple actions from one press. Check the game’s rules before using macros in online play. Single-key remaps are usually fine; multi-step combat macros may get you banned.

Can I record a macro that includes mouse movement?

In G HUB, yes—enable “Record Mouse Movement” before recording. In Options+, you can only record clicks, not cursor movement. For precise movement, consider using a script instead.

How do I delete a macro?

In G HUB, go to the Macros tab, right-click the macro, and choose Delete. In Options+, click the button with the assignment, then select “Unassign” or the trash icon.

Do macros work without the Logitech software running?

Only if you save them to onboard memory (G HUB) or use the device’s built-in memory (some Options+ devices). Otherwise, the software must be running in the background.

Can I share macros with a friend?

In G HUB, you can export profiles (including macros) as files via Settings > Backups. Options+ doesn’t have a direct export feature, but you can manually recreate the keystroke assignments.

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.