Presentation.Convert Method
PowerPoint Developer Reference |
Converts a diagram to a different diagram type.
Syntax
expression.Convert(Type)
expression A variable that represents a Presentation object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Type | Required | MsoDiagramType | The type of diagram to convert to. |
Remarks
The Convert method generates an error if the value of the target diagram's Type property is an organization chart (msoDiagramTypeOrgChart).
The
Type
parameter value can be one of these MsoDiagramType constants.
msoDiagramCycle |
msoDiagramMixed |
msoDiagramOrgChart |
msoDiagramPyramid |
msoDiagramRadial |
msoDiagramTarget |
msoDiagramVenn |
Example
The following example adds a pyramid diagram to a slide and converts it to a radial diagram.
Visual Basic for Applications |
---|
|
See Also