Propiedad Shape.HasSmartArt (Word)

Devuelve True si hay presente en la forma de un diagrama SmartArt. Solo lectura.

Sintaxis

expresión. HasSmartArt

Expresión Variable que representa un objeto Shape .

Ejemplo:

En el ejemplo de código siguiente se muestra si la primera forma del documento activo contiene SmartArt o no.

Dim myShape As Shape 
 
Set myShape = ActiveDocument.Shapes(1) 
 
If myShape.HasSmartArt Then 
 MsgBox "The first shape contains SmartArt." 
Else 
 MsgBox "The first shape contains no SmartArt." 
End If

Consulte también

Objeto Shape

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.