页面对象Page object

页和**Pages** 集合中的单个成员的一页。One page of a MultiPage and a single member of a Pages collection.

备注Remarks

每个 Page 对象包含自己的控件集并且不一定依赖集合中的其他页上的信息。Each Page object contains its own set of controls and does not necessarily rely on other pages in the collection for information. Page 将从其容器继承一些属性;每个继承属性的值由容器设置。A Page inherits some properties from its container; the value of each inherited property is set by the container.

PagePages 集合中具有唯一名称和索引值。A Page has a unique name and index value within a Pages collection. 您可按名称或索引值引用 PageYou can reference a Page by either its name or its index value. 集合中第一个 Page 的索引为 0;第二个 Page 的索引为 1;依此类推。The index of the first Page in a collection is 0; the index of the second Page is 1; and so on. 当两个 Page 对象具有相同的名称时,您必须按索引值引用每个 PageWhen two Page objects have the same name, you must reference each Page by its index value. 对代码中名称的引用将仅访问使用该名称的第一个 PageReferences to the name in code will access only the first Page that uses the name.

第一个 Page 的默认名称为 Page1;第二个 Page 的默认名称为 Page2。The default name for the first Page is Page1; the default name for the second Page is Page2.

另请参阅See also

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.