Settings -> Miscellaneous -> Define Program Groups
What are groups?
You can assign multiple programs to a group, e.g. email programs or office programs. One program can also be in multiple groups.
What are groups (program groups) used for?
Hotkeys as well as flexikeys can be program-specific. E.g. F9 should convert the marked text in Notepad to upper case letters.
Now you would this hotkey to do the same thing in all office programs. You do not have to individually add the hotkey to each program to do so, you simply have to add it to the already existing group "Office". You can expand these groups in this dialog at any time.
Open this dialog:
Settings - Miscellaneous -> press F12 to access advance settings if necessary -> Define Program Groups.