Hi
Application.DisplayFullScreen = True
to make it full screen
Application.DisplayFullScreen = False
to return to the normal view
This I discovered by recording a macro!
Lewis
But how to do for UserForms ?
Re: But how to do for UserForms ?
Hi Try this.
'/please paste to UserForm1.Module
Private Sub UserForm_Initialize()
Call MyZoom
End Sub
'/please paste to Module
Declare Function GetSystemMetrics Lib "user32" _
(ByVal nIndex As Long) As Long
Sub MyZoom()
Dim x As Long, y As Long
x = GetSystemMetrics(0)
y = GetSystemMetrics(1)
With UserForm1
If .Zoom = 100 Then
.Zoom = (x / 498) / (4 / 3) * 100
.Width = x / (4 / 3)
.Height = y / (4 / 3)
Else
.Zoom = 100
.Width = 498
.Height = 378.75
End If
.StartUpPosition = 3
.Repaint
End With
End Sub