# 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.

_FT_HTML5_bannerTitle.htm