Fix a Macro Shortcut for Grouping Objects in Word 2016
Question details
The user needs a working Word 2016 keyboard shortcut for a macro that groups selected objects.

- Product
- Microsoft Word 2016
- Device & OS
- Windows 7
- Scenario
- The user records a macro for selecting and grouping objects and tries to assign it a keyboard shortcut.
- Observed behavior
- Pressing Ctrl or Alt alone does not display a shortcut, and the recorded macro may not contain useful code for the object actions.
Select the shapes you want to group and check that they are floating objects rather than inline objects. Decide whether the macro should be available only in the current document or in a template such as Normal.dotm.
Assign a Complete Keyboard Shortcut to the Macro
Use Word's keyboard customization settings to assign the macro and check where the shortcut is saved.
In Word 2016, select File > Options > Customize Ribbon, then click Customize next to Keyboard shortcuts.
Under Categories, select Macros, then select your macro from the list.
Click Press new shortcut key and press a complete combination, such as Ctrl+Alt+G. Ctrl or Alt alone is a modifier, not a complete shortcut. Check the current assignment before replacing an existing shortcut.
In Save changes in, select the document or template where the shortcut should be available, then click Assign and Close. Confirm that the macro itself is stored in an available document or template.
Return to the document, select the shapes, and press the assigned key combination. If nothing happens, inspect the macro code using View > Macros > View Macros.

Write a VBA Macro to Group Selected Shapes
Use VBA when the macro recorder does not capture the grouping action.
Group Shapes Manually in Word
Use the built-in grouping command if you do not need a macro.
Edit and Arrange Document Objects with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface for editing documents and arranging objects. Its Microsoft Office format compatibility makes it easier to move existing files into WPS, though it does not repair Word's macro shortcuts.

Frequently Asked Questions
Why does pressing Ctrl or Alt not fill in the shortcut field?
Ctrl and Alt are modifier keys. In the Press new shortcut key field, press a complete combination such as Ctrl+Alt+G, then click Assign.
Why does my recorded macro not group the shapes?
Word's macro recorder cannot capture many object-selection and grouping actions. Open the macro through View > Macros > View Macros and inspect its code; you may need to write the grouping action in VBA.
Where should I save a macro shortcut so it is available in other documents?
In File > Options > Customize Ribbon > Customize, choose an available template such as Normal.dotm under Save changes in. Also ensure the macro is stored in a template available to those documents.
Why is the Group command unavailable?
Select at least two groupable floating objects. Inline objects cannot be grouped in the same way; change their text wrapping if appropriate, then select them again and try Group > Group.
How can I run the macro without its keyboard shortcut?
Select the shapes, open View > Macros > View Macros, select the macro, and click Run. Word's macro security settings must permit the macro to run.




