_Application.AddCustomList - Méthode

Adds a custom list for custom autofill and/or custom sort.

Espace de noms :  Microsoft.Office.Interop.Excel
Assembly :  Microsoft.Office.Interop.Excel (dans Microsoft.Office.Interop.Excel.dll)

void AddCustomList(
	Object ListArray,
	Object ByRow
)

Paramètres

ListArray
Type : System.Object

Required Object. Specifies the source data, as either an array of strings or a Range object.

ByRow
Type : System.Object

Optional Object. Only used if ListArray is a Range object. True to create a custom list from each row in the range. False to create a custom list from each column in the range. If this argument is omitted and there are more rows than columns (or an equal number of rows and columns) in the range, Microsoft Excel creates a custom list from each column in the range. If this argument is omitted and there are more columns than rows in the range, Microsoft Excel creates a custom list from each row in the range.

If the list you're trying to add already exists, this method does nothing.

Afficher: