Code:
Public Sub AutoExec()
myForm.show
End Sub
will work to display a userform when Word starts, the problem is not the macro, but the userform, which undoubtedly contains code that relates to the non-existent active document, hence the error.
What is it that the userform is supposed to achieve when Word is started.