Microsoft Office Tutorials and References
In Depth Information
Splitting a Document into Multiple Files
Wrd
Figure 65 – Defining the Heading Level for Splitting a Document
Tip: The tool is language independent; for example, it doesn't matter whether the style in the
active document is named "Heading 1" or "Überschrift 1".
View the Appendix to learn how to store this procedure
in a Standard module.
Option explicit¶
' * * * * *¶
Sub SplitDocIntoFiles()¶
'Variable declaration¶
Dim doc As Word.Document¶
Set doc = ActiveDocument¶
'Recommended to save to a new name¶
'as original document will not¶
'be recoverable¶
Dialogs(wdDialogFileSaveAs).Show¶
SplitByLevel doc¶
Search JabSto ::




Custom Search