Table of contents
TOC
折叠目录
展开目录

Report.HelpFile 属性 (访问)Report.HelpFile Property (Access)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

与报表关联的帮助文件的名称。读/写,字符串The name of a help file associated with a report. Read/write String.

语法Syntax

表达式帮助文件expression. HelpFile

表达式_一个表示报表对象的变量。_expression A variable that represents a Report object.

示例Example

下面的示例添加了一个自定义命令栏以及跟踪股票的组合框。该示例也指定了在用户按下 Shift+F1 时所显示的组合框“帮助”主题。This example adds a custom command bar with a combo box that tracks stock data. The example also specifies the Help topic to be displayed for the combo box when the user presses SHIFT+F1.

Set myBar = CommandBars _ 
 .Add(Name:="Custom", Position:=msoBarTop, _ 
 Temporary:=True) 
With myBar 
 .Controls.Add Type:=msoControlComboBox, ID:=1 
 .Visible = True 
End With 
With CommandBars("Custom").Controls(1) 
 .AddItem "Get Stock Quote", 1 
 .AddItem "View Chart", 2 
 .AddItem "View Fundamentals", 3 
 .AddItem "View News", 4 
 .Caption = "Stock Data" 
 .DescriptionText = "View Data For Stock" 
 .HelpFile = "C:\corphelp\custom.hlp" 
 .HelpContextID = 47 
End With

另请参阅See also

概念Concepts

报表对象Report Object

© 2018 Microsoft