.. highlightlang:: us .. index:: Document.Handle .. _document.handle: Document.Handle =============== .. us.tag Document.Handle NOTREADYENGLISH Programming.ActiveX New300 :ref:`Document.Handle` returns the handle of a embedded UniPlot document. .. function:: hDoc = Document.Handle .. us.return **Return Value** *hDoc* is the document handle of the embedded UniPlot document or 0 in case of an error. .. us.example **Example** If the first embedded OLE object in an Excel sheet is an UniPlot diagram the following Visual-Basic statement will return the document handle. :: hDoc = Worksheets(1).OLEObjects(1).Object.Handle .. seealso:: :ref:`overview-programming`, :ref:`Document.Application`, :ref:`UniPlot.Call` :sub:`id-887753`