Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 1.1 KB

Word.KeysBoundTo.Key.md

File metadata and controls

50 lines (29 loc) · 1.1 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
KeysBoundTo.Key method (Word)
vbawd10.chm160890881
vbawd10.chm160890881
Word.KeysBoundTo.Key
efaef450-7d8d-0099-2420-07ae44c6bfa1
06/08/2017
medium

KeysBoundTo.Key method (Word)

Returns a KeyBinding object that represents the specified custom key combination.

Syntax

expression.Key (KeyCode, KeyCode2)

expression A variable that represents a 'KeysBoundTo' object.

Parameters

Name Required/Optional Data type Description
KeyCode Required Long A key you specify by using one of the WdKey constants.
KeyCode2 Optional Variant A second key you specify by using one of the WdKey constants.

Return value

KeyBinding

Remarks

If the key combination doesn't exist, this method returns Nothing.

Use the BuildKeyCode method to create the KeyCode or KeyCode2 argument.

See also

KeysBoundTo Collection Object

[!includeSupport and feedback]