View Single Post
 
Old 12-14-2014, 10:37 PM
gmayor's Avatar
gmayor gmayor is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

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.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote