- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 86
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2025-4-10
               
|
¦^´_ 9# ©P¤j°¶
©ñ¤jÅã¥Ü©óA1Àx¦s®æ- Private Sub Workbook_Open()
- Set dic = CreateObject("Scripting.Dictionary")
- Dim sh As Shape
- For Each sh In Sheet1.Shapes
- With sh
- If .Name Like "Picture*" Then .OnAction = "nn": dic(.Name) = Array(.Top, .Left, .Height, .Width)
- End With
- Next
- End Sub
½Æ»s¥N½X ¤@¯ë¼Ò²Õ- Public dic
- Sub nn()
- With Sheet1.Shapes(Application.Caller)
- If .Left = ActiveSheet.[A1].Left Then
- .Top = dic(.Name)(0)
- .Left = dic(.Name)(1)
- .Height = dic(.Name)(2)
- .Width = dic(.Name)(3)
- Else
- .Height = dic(.Name)(2) * 3
- .Width = dic(.Name)(3) * 3
- .Top = ActiveSheet.[A1].Top
- .Left = ActiveSheet.[A1].Left
- .ZOrder msoBringToFront
- End If
- End With
- End Sub
½Æ»s¥N½X
ShowPicture.zip (196.18 KB)
|
|