|
做了一点修改。
Sub Enlarge(ByVal oShp As Shape)
oShp.ZOrder msoBringToFront
oShp.ZOrder msoBringForward
With ActivePresentation.Slides(2)
If Magnify(oShp.Name) Then
Magnify(oShp.Name) = False
oShp.Width = Ratio * oWidth(oShp.Name)
oShp.Height = Ratio * oHeight(oShp.Name)
oShp.TextFrame.TextRange.Font.Size = oFontSize(oShp.Name) * Ratio
Else
oShp.Width = oWidth(oShp.Name)
oShp.Height = oHeight(oShp.Name)
oShp.Left = oLeft(oShp.Name)
oShp.Top = oTop(oShp.Name)
oShp.TextFrame.TextRange.Font.Size = oFontSize(oShp.Name)
Magnify(oShp.Name) = True
End If
End With
End Sub |
|