Another option is to enable the "Use PC Style Home/End" setting in Karabiner (formerly KeyRemap4MacBook):
The setting is defined in Resources/include/checkbox/for_pc_users.xml.
You can also save a file like this as ~/Library/Application Support/KeyRemap4MacBook/private.xml
:
<?xml version="1.0"?>
<root>
<appdef>
<appname>HOMEENDIGNORE</appname>
<equal>com.microsoft.Word</equal>
<equal>com.microsoft.Powerpoint</equal>
<equal>com.microsoft.Excel</equal>
<equal>com.vmware.fusion</equal>
<prefix>com.vmware.proxyApp.</prefix>
</appdef>
<item>
<name>homeend</name>
<identifier>homeend</identifier>
<not>HOMEENDIGNORE</not>
<autogen>__KeyToKey__ KeyCode::HOME, ModifierFlag::NONE, KeyCode::A, VK_CONTROL</autogen>
<autogen>__KeyToKey__ KeyCode::END, ModifierFlag::NONE, KeyCode::E, VK_CONTROL</autogen>
<autogen>__KeyToKey__ KeyCode::HOME, VK_SHIFT | ModifierFlag::NONE, KeyCode::A, VK_CONTROL | VK_SHIFT</autogen>
<autogen>__KeyToKey__ KeyCode::END, VK_SHIFT | ModifierFlag::NONE, KeyCode::E, VK_CONTROL | VK_SHIFT</autogen>
</item>
</root>
Then open the KeyRemap4MacBook application, press the ReloadXML button, and enable the setting. See https://pqrs.org/macosx/keyremap4macbook/xml.html.en for more information.