Private Sub Worksheet_SelectionChange(ByVal Target As Range)
恢复
End Sub
Private Sub Worksheet_Activate() '激活这个工作表时,给每个代码增加宏
宏
End Sub
Sub 放大()
Application.ScreenUpdating = False
恢复
With Sheet1.Shapes(Application.Caller)
.ZOrder msoBringToFront
.Width = 240
.Height = 150
.TopLeftCell.RowHeight = 150
End With
Application.ScreenUpdating = True
End Sub
Sub 恢复()
Application.ScreenUpdating = False
Dim shp As Shape
For Each shp In Sheet1.Shapes
With shp
If .Type = 13 Then
.Width = 80
.Height = 50
.TopLeftCell.RowHeight = 50
End If
End With
Next
Application.ScreenUpdating = True
End Sub
Sub 宏()
Dim shp As Shape
Application.ScreenUpdating = False
For Each shp In Sheet1.Shapes
With shp
If .Type = 13 Then
.OnAction = "放大"
End If
End With
Next
Application.ScreenUpdating = True
End Sub