- ©«¤l
- 354
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 387
- ÂI¦W
- 0
- §@·~¨t²Î
- windows7
- ³nÅ骩¥»
- vba,vb,excel2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2017-1-8
- ³Ì«áµn¿ý
- 2024-8-2
|
¥»©«³Ì«á¥Ñ singo1232001 ©ó 2023-12-4 01:41 ½s¿è
¦^´_ 1# av8d
Sub ¥¨¶°1()
Left1 = 0
Top1 = 0
width1 = 575 ' (½Ð¦Û¦æ½Õ¾ã¼e«×)
height1 = 617 ' (½Ð¦Û¦æ½Õ¾ã°ª«×)
For Each Z In Windows
If Z.Caption Like "¬¡¶Ã¯1.xlsm" Then
If Z.WindowState <> xlNormal Then Z.WindowState = xlNormal
If Z.WindowState <> xlNormal Then Z.WindowState = xlNormal
Z.Left = Left1
Z.Top = Top1
Z.Width = width1
Z.Height = height1
ElseIf Z.Caption Like "¬¡¶Ã¯2.xlsm" Then
If Z.WindowState <> xlNormal Then Z.WindowState = xlNormal
If Z.WindowState <> xlNormal Then Z.WindowState = xlNormal
Z.Left = Left1 + width1
Z.Top = Top1
Z.Width = width1
Z.Height = height1
End If
Next
End Sub |
|