|
楼主 |
发表于 2010-3-11 15:38
|
显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
原帖由 deilix 于 2010-3-3 21:57 发表
这个翻转的动画效果
是excel自带的还是插入的?
动画效果是自己用代码画出来的
Sub PlayC(vName As String) '翻转棋子动画
Dim tmpTop As Single
tmpTop = a.Shapes.Item(vName).Top
a.Shapes.Item(vName).ScaleHeight 0.88, msoFalse, msoScaleFromMiddle
vPuse k
a.Shapes.Item(vName).ScaleHeight 0.8, msoFalse, msoScaleFromMiddle
vPuse k
a.Shapes.Item(vName).ScaleHeight 0.67, msoFalse, msoScaleFromMiddle
vPuse k
a.Shapes.Item(vName).ScaleHeight 0.38, msoFalse, msoScaleFromMiddle
vPuse k
a.Shapes.Item(vName).ScaleHeight 1.33, msoFalse, msoScaleFromMiddle
vPuse k
a.Shapes.Item(vName).Flip msoFlipVertical
a.Shapes.Item(vName).Fill.ForeColor.SchemeColor = IIf(a.Shapes.Item(vName).Fill.ForeColor.SchemeColor <> 9, 9, 0)
a.Shapes.Item(vName).Fill.Visible = msoTrue
a.Shapes.Item(vName).Fill.Solid
vPuse k
a.Shapes.Item(vName).ScaleHeight 2.25, msoFalse, msoScaleFromMiddle
vPuse k
a.Shapes.Item(vName).ScaleHeight 1.44, msoFalse, msoScaleFromMiddle
vPuse k
a.Shapes.Item(vName).ScaleHeight 1.38, msoFalse, msoScaleFromMiddle
a.Shapes.Item(vName).Height = 27
a.Shapes.Item(vName).Width = 27
a.Shapes.Item(vName).Top = tmpTop
End Sub
[ 本帖最后由 Moneky 于 2010-3-11 15:40 编辑 ] |
|