How to Fix Alt+B Macro Shortcut Conflicts with Arabic Language in Word
Question details
The user needs to resolve an issue where a Word macro assigned to the Alt+B shortcut fails to execute when the input language is set to Arabic.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Using a macro triggered by a custom keyboard shortcut while switching between English and Arabic input languages.
- Observed behavior
- The Alt+B shortcut works perfectly in English but fails to run the macro in Arabic, as Alt-only shortcuts are intercepted by the system for ribbon and menu access.
Ensure you have saved your macro code and document before modifying keyboard shortcuts, as changing active shortcut combinations might temporarily alter your workflow.
Reassign the Macro Shortcut to a Complex Key Combination
Change the Alt-only shortcut to a more robust combination (like Alt+Ctrl or Alt+Shift) to prevent overlaps with built-in ribbon access commands in different languages.
In Word, shortcut keys consisting only of the 'Alt' key plus a letter are generally reserved for accessing ribbon tabs and menu items. This system behavior becomes more prominent when switching to alternative keyboard layouts like Arabic, which changes how keystrokes are interpreted and causes custom macros to fail.
Click on the 'File' tab in the top-left corner of the Word window, then select 'Options' at the bottom of the menu.
Select 'Customize Ribbon' from the left pane. At the bottom of the window, click the 'Customize...' button next to 'Keyboard shortcuts'.
In the Categories list on the left, scroll down and select 'Macros'. Then, choose the specific macro causing the issue from the Macros list on the right.
Click inside the 'Press new shortcut key' text box. Press a new key combination, such as Alt+Ctrl+B or Alt+Shift+B, making sure it says '[Unassigned]' underneath.
Click 'Assign' and then 'Close'. Switch your system keyboard layout to Arabic and press the new shortcut to verify that the macro now runs correctly.

Effortlessly Manage Macros and Shortcuts in WPS Writer
WPS Writer offers intuitive customization for keyboard shortcuts and robust macro support, allowing you to seamlessly work across different languages and keyboard layouts without frustrating command conflicts.
- 1. Open Customization Settings: Open your document in WPS Writer, click the 'Menu' drop-down at the top left, go to 'Options', and select 'Customize Ribbon'.
- 2. Locate Shortcut Settings: Find the Keyboard Shortcuts section and locate the macro or specific command you want to trigger.
- 3. Assign a Multi-Key Combination: Click the shortcut input field, press a combination like Ctrl+Shift+B, and click 'Assign' to save it.
- 4. Run Macros Seamlessly: Use your newly assigned shortcut to run your macro perfectly, regardless of whether your active input language is English or Arabic.

Frequently Asked Questions
Why do Alt-only shortcuts stop working when I switch to Arabic?
When switching to certain keyboard layouts like Arabic, the software prioritizes Alt-only keystrokes for navigating the ribbon or menus via built-in keyboard accelerators, which overrides any custom macro shortcuts assigned to those keys.
Can I disable the Alt key ribbon access in Word?
You cannot completely disable the Alt key's native function for accessing the ribbon menu. The most effective workaround is assigning custom macros using multi-key combinations like Ctrl+Alt or Alt+Shift.
How do I know if a shortcut combination is already assigned?
When you press a key combination in the 'Customize Keyboard' dialog box, the software will display 'Currently assigned to: [Command Name]' just below the input box if the shortcut is already in use by another function.




