Thread: protect doc?
View Single Post
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
js
 
Posts: n/a
Default protect doc?

Hi,
if my doc is wdAllowOnlyFormFields, the .Add method will cause
DocumentBeforeClose event to fire, and won't let me open the doc,
how to fix this? thanks.

================================================== ============
Set oWordApp = CreateObject("Word.Application") 'New Word.Application
Set oWordDocO = oWordApp.Documents.Add(Template:=filename,
NewTemplate:=True)