Nota
L'accés a aquesta pàgina requereix autorització. Pots provar d'iniciar sessió o canviar de directori.
L'accés a aquesta pàgina requereix autorització. Pots provar de canviar directoris.
Devuelve o establece el inicio de un intervalo de texto. Solo lectura.
Sintaxis
expresión. TextRangeStart
expresión Variable que representa un objeto Effect .
Valor devuelto
Long
Ejemplo
En este ejemplo se agrega una forma con texto que se gira sin girar el texto.
Sub SetTextRange()
Dim shpStar As Shape
Dim sldOne As Slide
Dim effNew As Effect
Set sldOne = ActivePresentation.Slides(1)
Set shpStar = sldOne.Shapes.AddShape(Type:=msoShape5pointStar, _
Left:=32, Top:=32, Width:=300, Height:=300)
shpStar.TextFrame.TextRange.Text = "Animated shape."
Set effNew = sldOne.TimeLine.MainSequence.AddEffect(Shape:=shpStar, _
EffectId:=msoAnimEffectPath5PointStar, Level:=msoAnimateTextByAllLevels, _
Trigger:=msoAnimTriggerAfterPrevious)
With effNew
If .TextRangeStart = 0 And .TextRangeLength > 0 Then
With .Behaviors.Add(Type:=msoAnimTypeRotation).RotationEffect
.From = 0
.To = 360
End With
.Timing.AutoReverse = msoTrue
End If
End With
End Sub
Vea también
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.