|
本帖最后由 joyark 于 2011-8-10 03:31 编辑
一个简单的动态摄影
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
Application.ScreenUpdating = False
Shapes("Shape_矩形").Select
Selection.Formula = "=" & Target.Address(0, 0)
Selection.Top = Target.Top
Selection.Left = Target(Target.Cells.Count).Offset(, 3).Left 'Target(Target.Cells.Count) Target区域的最后的单元格
Selection.Width = Target.Width * 1.2
Selection.Height = Target.Height * 1.2
Target.Activate
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|