Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Good afternoon Michael Use this before your first procedure in the userforms code: Private Declare Function SetWindowLong& Lib "user32" Alias "SetWindowLongA" (ByVal hwnd&, ByVal nIndex&, ByVal wNewWord&) Private Declare Function FindWindow& Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) Public usrcell As String and then just add this in to your Userform_Initialize event (or just add it to the bottom of your code if you don't have one). Private Sub UserForm_Initialize() Dim hwnd& hwnd = FindWindow(vbNullString, Me.Caption) SetWindowLong hwnd, -16, &H84CA0080 End Sub HTH DominicB -- dominicb ------------------------------------------------------------------------ dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932 View this thread: http://www.excelforum.com/showthread...hreadid=377685 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Minimize a form | Excel Programming | |||
Minimize the VB form | Excel Programming | |||
Minimize the VB form | Excel Programming | |||
Minimize a form | Excel Programming | |||
How to minimize a form using VB | Excel Programming |