I am using the below code so that when the user opens the document, it displays ther userform and hides Word, but I cannot get the focus onto the userform. I have to click the taskbar to display it.
Any ideas or better methods ?
Sub AutoOpen()
Dim Docname As Variant
Docname = ActiveDocument.Name
Windows(Docname).WindowState = wdWindowStateMinimize
frmMainForm.Show
End Sub
Word2000 9.0.4402 Win2000
Any ideas or better methods ?
Sub AutoOpen()
Dim Docname As Variant
Docname = ActiveDocument.Name
Windows(Docname).WindowState = wdWindowStateMinimize
frmMainForm.Show
End Sub
Word2000 9.0.4402 Win2000