ListGallery.Reset method (Word)

Resets the list template specified by Index for the specified list gallery to the built-in list template format.

Syntax

expression. Reset (Index)

expression Required. A variable that represents a 'ListGallery' object.

Parameters

Name Required/Optional Data type Description
Index Required Long The template to reset.

Example

This example sets the fourth format listed on the Numbered tab in the Bullets and Numbering dialog box back to the built-in numbering format, and then it applies the list template to the selection.

ListGalleries(wdNumberGallery).Reset(4) 
Selection.Range.ListFormat.ApplyListTemplate _ 
 ListTemplate:=ListGalleries(2).ListTemplates(4)

This example resets all the list templates in the Bullets and Numbering dialog box back to the built-in formats.

For Each lg In ListGalleries 
 For i = 1 to 7 
 lg.Reset Index:=i 
 Next i 
Next lg 
 

See also

ListGallery Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.