View Single Post
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default detach header source?

Try setting .MainDocumentType to wdNotAMergeDocument (of course you lose
all the data source connection info. but it looks as if you are doing that
anyway).

--
Peter Jamieson
http://tips.pjmsn.me.uk

"christopher.allen" "at workscape.com" wrote in message
...
In Word 2000/2003 VBA, I'm processing mail merge docs that may or may not
have header and data sources already attached. I'm attaching other data
sources that contain their own header info, so I want to remove any
already-attached header source.

Is there a way to do this? Calling OpenHeaderSource with "" gives a
runtime error. Can't set HeaderSourceName as it's read-only. Thanks!

-Christopher