Convert Method
Applies To
Endnotes collection object, Footnotes collection object, ListTemplate object.
Description
Footnotes or Endnotes object: Converts endnotes to footnotes, or vice versa.
ListTemplate object: Converts a multiple-level list to a single-level list, or vice versa.
Syntax 1
expression.Convert
Syntax 2
expression.Convert(Level)
expression Required. An expression that returns a ListTemplate object (Syntax 1) or an Endnotes or Footnotes object (Syntax 2).
Level Optional Long. The level to use for formatting the new list. When converting a multiple-level list to a single-level list, this argument can be a number from 1 through 9. When converting a single-level list to a multiple-level list, 1 is the only valid value. If this argument is omitted, 1 is used.
Remarks
You cannot use the Convert method on a list template that is derived from the ListGalleries collection.
See Also
ListTemplate property, SwapWithEndnotes method, SwapWithFootnotes method.
Example
This example converts all endnotes in the active document to footnotes.
Set myEndnotes = ActiveDocument.Endnotes
If myEndnotes.Count > 0 Then myEndnotes.Convert
This example converts the footnotes in the selection to endnotes.
If Selection.Footnotes.Count > 0 Then Selection.Footnotes.Convert
This example converts the first list template in the active document. If the list template is multiple-level, it becomes single-level, or vice versa.
ActiveDocument.ListTemplates(1).Convert