Upravit

Sdílet prostřednictvím


IAssistance.ClearDefaultContext method (Office)

Clears the default help topic previously defined in the SetDefaultContext method.

Syntax

expression.ClearDefaultContext (HelpId)

expression An expression that returns an IAssistance object.

Parameters

Name Required/Optional Data type Description
HelpId Required String The ID of the default help topic.

Remarks

Executing this method will stop the default help topic from displaying when the user presses F1 or chooses the Help button in a dialog box.

The Assistance property returns an IAssistance object. The IAssistance object exposes methods that allow developers to display help topics in the Office Help Viewer or to display help topics that ship with Office in the Help window of the host application. Developers either pass specific Help IDs to the help system or pass specific search queries. Help IDs have to be explicitly added to the Help file in order for the Help ID to return the help topic.

Example

In the following example, the default help topic is cleared and will no longer be displayed.

Sub ClearDefaultHelpTopic() 
 Application.Assistance.ClearDefaultContext "22261" 
End Sub

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.