# Change the Current Object in a Document

There are many Viewing parameters that control the objects in a multiple-object document. Examples of a multiple-object document include a Microsoft Excel spreadsheet with multiple worksheets, and a Microsoft PowerPoint presentation with multiple slides.

- To determine whether a document contains multiple objects, use the VAPIMWP_MULTIOBJ_CANMULTIOBJ message.

- To determine the number of objects in a multiple-object document, use the VAPIMWP_MULTIOBJ_GETOBJCOUNT message.

- To change the current object to the next object in a document, use the VAPIMWP_MULTIOBJ_NEXTOBJ message.

- To change the current object to the previous object in a document, use the VAPIMWP_MULTIOBJ_PREVOBJ message.

- To get the name of the current object in a document, use the VAPIMWP_MULTIOBJ_OBJNAME message.

- To change the current object to a target object in a document, use the VAPIMWP_MULTIOBJ_SETCURRENTOBJ message.

- To receive the name of the current object, which VAPI sends when the document is first opened or whenever the object changes, wait for the VAPINMWP_MULTIOBJ_OBJNAME notification message.

© Copyright 2016-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm