' ----------------------------------------------
'- Declaration top of module
Private Declare Function GetSystemMetrics _
Lib "user32" (ByVal nIndex As Long) As Long
Private Const SM_CXSCREEN = 0
Private Const SM_CYSCREEN = 1
'------------------------------------------------
'-
Private Sub UserForm_Initialize()
x = GetSystemMetrics(SM_CXSCREEN)
y = GetSystemMetrics(SM_CYSCREEN)
Me.Top = 0
Me.Left = 0
Me.Width = x * 0.75
Me.Height = y * 0.75
End Sub
'------------------------------------------------
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.