Skip to content

Latest commit

 

History

History
61 lines (36 loc) · 1.65 KB

Word.Application.ListGalleries.md

File metadata and controls

61 lines (36 loc) · 1.65 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.ListGalleries property (Word)
vbawd10.chm158335041
vbawd10.chm158335041
Word.Application.ListGalleries
769d3494-3fc3-5a4b-e6d1-a3910107c8bd
06/08/2017
medium

Application.ListGalleries property (Word)

Returns a ListGalleries collection that represents the three list template galleries. .

Syntax

expression. ListGalleries

expression A variable that represents an Application object.

Remarks

Each template gallery (Bulleted, Numbered, and Outline Numbered) corresponds to a tab in the Bullets and Numbering dialog box (Format menu). For information about returning a single member of a collection, see Returning an object from a collection.

Example

This example sets the variable mylsttmp to the second list template on the Outline Numbered tab in the Bullets and Numbering dialog box. The example then applies that template to the first list in the active document.

Set mylsttmp = _ 
 ListGalleries(wdOutlineNumberGallery).ListTemplates(2) 
ActiveDocument.Lists(1).ApplyListTemplate ListTemplate:=mylsttmp

This example cycles through the ListGalleries collection and changes the templates in each list template gallery back to the built-in template.

For Each listgal In ListGalleries 
 For i = 1 To 7 
 listgal.Reset(i) 
 Next i 
Next listgal

See also

Application Object

[!includeSupport and feedback]