- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 257
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-27
|
¦^´_ 2# bowwow1975 - Declare Function GetSystemMetrics Lib "user32" (ByVal nIndex As Long) As Long
- Public Const SM_CXSCREEN = 0 '³]¸m¤½¦@±`¼Æ¡A¨ú±o¿Ã¹õ¸ÑªR«×ªºXÈ
- Public Const SM_CYSCREEN = 1 '³]¸m¤½¦@±`¼Æ¡A¨ú±o¿Ã¹õ¸ÑªR«×ªºYÈ
½Æ»s¥N½X ³o¬qµ{¦¡½XÀ³¸Ó©ñ¦b¤@¯ë¼Ò²Õ¤º¡A¦]¬°¤½¦@±`¼Æ¥u¯à©ñ¦b¤@¯ë¼Ò²Õ
¥H¤U¬°Thisworkbook¼Ò²Õµ{¦¡½X- Private Sub Workbook_Open()
- VWidth = GetSystemMetrics(SM_CXSCREEN) '¨ú±o¿Ã¹õ¸ÑªR«×ªºXÈ
- VHeight = GetSystemMetrics(SM_CYSCREEN) '¨ú±o¿Ã¹õ¸ÑªR«×ªºYÈ
- With Excel.Application
- 'VWidth / 1960±o¨ì»Pì³]p¸ÑªR«×XȪº¤ñ¨Ò
- 'VWidth / 1080±o¨ì»Pì³]p¸ÑªR«×YȪº¤ñ¨Ò
- .WindowState = xlNormal ' ¥ý±Nµ¡¤fÁÙì
- .Width = VWidth * (VWidth / 1960) * 0.75 ' Points (~ 0.75 pixels)
- .Height = VHeight * (VHeight / 1080) * 0.75
- .Left = 0
- .Top = 0
- End With
- End Sub
½Æ»s¥N½X |
|