Hi Bruno,
The following code in an autoopen macro should do what you want
If ActiveDocument.Subdocuments.Count >= 1 Then
ActiveDocument.Subdocuments.Expanded = True
End If
I have never tried it as I have never needed to create a MasterDocument
I would suggest that you see the article “Why Master Documents corrupt” at:
http://word.mvps.org/FAQs/General/WhyMasterDocsCorrupt.htm
and for later, the article “How to recover a Master Document” at:
http://word.mvps.org/FAQs/General/RecoverMasterDocs.htm
--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP