Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Tue, 14 Oct 2008 16:28:01 -0700,    group: microsoft.public.word.vba.general        back       


template document_open   
I have a template that works as designed except for a small problem. After a 
document is created using the template and then saved and re-opened, the 
Document_Open doesn't fire. This only happens when the user has to enable 
Macros manually, rather than have them enabled automatically because of a 
non-trusted network location.
With a normal macro enabled document, if you enable macros manually, the 
file reloads itself. Is there a work-around for template based documents that 
will accomplish the same goal (fire the Document_Open method)?

Thanks for your help.
date: Tue, 14 Oct 2008 16:28:01 -0700   author:   KWarner

Re: template document_open   
"KWarner"  wrote in message 
news:588F01DE-2815-49F3-AAD3-347BE668A8AF@microsoft.com...
>I have a template that works as designed except for a small problem. After 
>a
> document is created using the template and then saved and re-opened, the
> Document_Open doesn't fire. This only happens when the user has to enable
> Macros manually, rather than have them enabled automatically because of a
> non-trusted network location.
> With a normal macro enabled document, if you enable macros manually, the
> file reloads itself. Is there a work-around for template based documents 
> that
> will accomplish the same goal (fire the Document_Open method)?
>
> Thanks for your help.

Try putting your code into a macro called AutoOpen instead of using the 
Document_Open event.


-- 
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
date: Wed, 15 Oct 2008 16:24:26 +0100   author:   Jonathan West

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us