PDA

Click to See Complete Forum and Search --> : Minimise A Form In Word?


gorounreal
Aug 17th, 2004, 06:58 PM
I was wanting to know how to minimise a word macro form in word.

I know the coding in normal vb should be form.windowstate = vbminimised or something but vba doesn't have that function. does anyone know the code for making a form minimise?

Thanks.

RobDog888
Aug 20th, 2004, 02:02 PM
Probably just use the .Show and.hide methods.
' This is the Initialize event procedure for UserForm1
Private Sub UserForm_Initialize()
Load UserForm2
UserForm2.Show
End Sub
' This is the Click event for UserForm2
Private Sub UserForm_Click()
UserForm2.Hide
End Sub

' This is the click event for UserForm1
Private Sub UserForm_Click()
UserForm2.Show
End Sub