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.
Printable View
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.
Probably just use the .Show and.hide methods.
VB Code:
' 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