Is there any way to set up them?
Thanks very much.
Rgds
Shu
' Minimize in application
Private Sub UserForm_Initialize()
Dim Style As Long
' Min: &H20000 / Max: &H10000 / Resize: &H40000
Style = &H84C80080 Or &H20000 Or &H40000
SetWindowLong FindWindow(vbNullString, Me.Caption), -16, Style
EnableWindow FindWindow(vbNullString, Application.Caption), 1
End Sub
To reduce the userform in the Taskbar, add the procedure:
' Minimize in TaskBar
Private Sub UserForm_Activate()
Dim hWnd As Long
hWnd = FindWindow(vbNullString, Me.Caption)
ShowWindow hWnd, 0
SetWindowLong hWnd, -20, &H40101
ShowWindow hWnd, 1
End Sub
Regards
MP
"Shu" <anon...@discussions.microsoft.com> a écrit dans le message de
news:5cef01c42d92$86aee320$a101...@phx.gbl...
Sub NoModalMode()
#If VBA6 Then
UserForm1.Show 0
#Else
UserForm1.Show
#End If
End Sub
MP
"Shu" <anon...@discussions.microsoft.com> a écrit dans le message de
news:5cef01c42d92$86aee320$a101...@phx.gbl...
Shu
>.
>