- ©«¤l
- 38
- ¥DÃD
- 14
- ºëµØ
- 0
- ¿n¤À
- 66
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Excel2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-7-16
- ³Ì«áµn¿ý
- 2013-9-3
|
¸ÕµÛ§ï¦¨³o¼Ë¤]¤£¦æ¡I- Private Sub Workbook_Open()
- SetXLResolution
- End Sub
- Sub SetXLResolution()
- Dim VWidth As Integer
- Dim VHeight As Integer
- 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 |
|