Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 12-14-2014, 10:37 PM
gmayor's Avatar
gmayor gmayor is offline How to start a Userform when Word is started Windows 7 64bit How to start a Userform when Word is started Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,144
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
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to start a Userform when Word is started Getting started... Annby Project 3 11-06-2014 03:38 PM
VBA Code in a UserForm module to delete a Command Button which opens the userform Simoninparis Word VBA 2 09-21-2014 03:50 AM
How to start a Userform when Word is started Is it possible to take an input from a UserForm in one document to a UserForm in a do BoringDavid Word VBA 5 05-09-2014 09:08 AM
How to start a Userform when Word is started Page footers have started ravl13 Word 3 11-21-2013 12:31 PM
Need Help Getting Started, Please. Thanks ChunkyZergling Outlook 1 04-24-2009 07:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft