Returns the topmost Inspector object on the desktop. If no inspector is active, returns Nothing. Use this method to access the Inspector object that the user is most likely to be viewing.
expression Required. An expression that returns an Application object
If you are using Microsoft Visual Basic Scripting Edition (VBScript) in a Microsoft Outlook form, you should typically use the GetInspector method to refer to the Inspector object associated with the form, for example:
Set myInspector = Item.GetInspector
Sub DisplayKeys() 'Enables key in ToolTips Dim myolapp As Outlook.Application Dim myinspector As Outlook.Inspector Set myolapp = CreateObject("Outlook.Application") Set myinspector = myolapp.ActiveInspector 'Test if an inspector is active If Not TypeName(myinspector) = "Nothing" Then myinspector.CommandBars.DisplayKeysInTooltips = True End If End Sub