|
楼主 |
发表于 2015-7-15 21:28
|
显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
3号功能的代码(坛子里收藏的):
Sub ActionClick()
Static n
Application.ScreenUpdating = False
n = n + 1
If (n Mod 2) = 1 Then
With Sheets("物料信息库").Shapes(Application.Caller)
.ScaleHeight 2, msoFalse, msoScaleFromTopLeft
.ScaleWidth 2, msoFalse, msoScaleFromTopLeft
.ZOrder msoBringToFront
End With
Else
With Sheets("物料信息库").Shapes(Application.Caller)
.ScaleHeight 0.5, msoFalse, msoScaleFromTopLeft
.ScaleWidth 0.5, msoFalse, msoScaleFromTopLeft
.ZOrder msoBringToFront
End With
End If
Application.ScreenUpdating = True
End Sub |
|