Excel VBA ¦p¦ó¦Û°Ê½Õ¾ãªí³æ¤j¤p
- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
        
|
¦^´_ 2# stillfish00
¥[¤W¥iÁÙì(ì¨Óªº¤j¤p)- Option Explicit
- Dim xME()
- Private Sub UserForm_Initialize()
- Dim i As Integer, e As Variant
- ReDim xME(0 To Controls.Count)
- xME(0) = Array(Top, Left, Height, Width, Font.Size)
- For Each e In Controls
- With e
- i = i + 1
- xME(i) = Array(.Top, .Left, .Height, .Width, .Font.Size)
- End With
- Next
- End Sub
- Private Sub UserForm_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
- Dim i As Integer, e As Variant
- Static lastY As Single
- Debug.Print Shift
- If Button = 1 And Shift = 2 Then
- If Y - lastY > 5 Then
- ResizeUserform 1.1
- lastY = Y
- ElseIf lastY - Y > 5 Then
- ResizeUserform 0.9
- lastY = Y
- End If
- ElseIf Button = 2 And Shift = 2 Then '«ö¤U¥kÁä
- Top = xME(0)(0)
- Left = xME(0)(1)
- Height = xME(0)(2)
- Width = xME(0)(3)
- Font.Size = xME(0)(4)
- For Each e In Controls
- With e
- i = i + 1
- .Top = xME(i)(0)
- .Left = xME(i)(1)
- .Height = xME(i)(2)
- .Width = xME(i)(3)
- .Font.Size = xME(i)(4)
- End With
- Next
- End If
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|