Table of contents
Collapse the table of content
Expand the table of content

IAssistance.ClearDefaultContext Method (Office)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

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


expression. ClearDefaultContext( HelpId )

expression An expression that returns a IAssistance object.


NameRequired/OptionalData TypeDescription
HelpIdRequiredStringThe ID of the default help topic.


Executing this method will stop the default help topic from displaying when the user presses F1 or clicks 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.


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

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

See also


IAssistance Object

Other resources

IAssistance Object Members

© 2018 Microsoft