NumberStyle Property

Microsoft Word Visual Basic

Show All

NumberStyle Property

       

NumberStyle property as it applies to the CaptionLabel object.

Returns or sets the number style for the CaptionLabel object. Read/write WdCaptionNumberStyle.

WdCaptionNumberStyle can be one of these WdCaptionNumberStyle constants.
wdCaptionNumberStyleArabicFullWidth
wdCaptionNumberStyleArabicLetter2
wdCaptionNumberStyleGanada
wdCaptionNumberStyleHanjaReadDigit
wdCaptionNumberStyleHebrewLetter2
wdCaptionNumberStyleHindiCardinalText
wdCaptionNumberStyleHindiLetter2
wdCaptionNumberStyleKanjiDigit
wdCaptionNumberStyleArabic
wdCaptionNumberStyleArabicLetter1
wdCaptionNumberStyleChosung
wdCaptionNumberStyleHanjaRead
wdCaptionNumberStyleHebrewLetter1
wdCaptionNumberStyleHindiArabic
wdCaptionNumberStyleHindiLetter1
wdCaptionNumberStyleKanji
wdCaptionNumberStyleKanjiTraditional
wdCaptionNumberStyleLowercaseLetter
wdCaptionNumberStyleLowercaseRoman
wdCaptionNumberStyleNumberInCircle
wdCaptionNumberStyleSimpChinNum2
wdCaptionNumberStyleSimpChinNum3
wdCaptionNumberStyleThaiArabic
wdCaptionNumberStyleThaiCardinalText
wdCaptionNumberStyleThaiLetter
wdCaptionNumberStyleTradChinNum2
wdCaptionNumberStyleTradChinNum3
wdCaptionNumberStyleUppercaseLetter
wdCaptionNumberStyleUppercaseRoman
wdCaptionNumberStyleVietCardinalText
wdCaptionNumberStyleZodiac1
wdCaptionNumberStyleZodiac2

expression.NumberStyle

expression   Required. An expression that returns a CaptionLabel object.

NumberStyle property as it applies to the EndnoteOptions, Endnotes, FootnoteOptions, and Footnotes objects.

Returns or sets the number style for the EndnoteOptions, Endnotes, FootnoteOptions, and Footnotes objects. Read/write WdNoteNumberStyle.

WdNoteNumberStyle can be one of these WdNoteNumberStyle constants.
wdNoteNumberStyleArabic
wdNoteNumberStyleArabicLetter1
wdNoteNumberStyleHanjaRead
wdNoteNumberStyleHebrewLetter1
wdNoteNumberStyleHindiArabic
wdNoteNumberStyleHindiLetter1
wdNoteNumberStyleKanji
wdNoteNumberStyleKanjiTraditional
wdNoteNumberStyleLowercaseRoman
wdNoteNumberStyleSimpChinNum1
wdNoteNumberStyleSymbol
wdNoteNumberStyleThaiCardinalText
wdNoteNumberStyleTradChinNum1
wdNoteNumberStyleUppercaseLetter
wdNoteNumberStyleVietCardinalText
wdNoteNumberStyleArabicFullWidth
wdNoteNumberStyleArabicLetter2
wdNoteNumberStyleHanjaReadDigit
wdNoteNumberStyleHebrewLetter2
wdNoteNumberStyleHindiCardinalText
wdNoteNumberStyleHindiLetter2
wdNoteNumberStyleKanjiDigit
wdNoteNumberStyleLowercaseLetter
wdNoteNumberStyleNumberInCircle
wdNoteNumberStyleSimpChinNum2
wdNoteNumberStyleThaiArabic
wdNoteNumberStyleThaiLetter
wdNoteNumberStyleTradChinNum2
wdNoteNumberStyleUppercaseRoman

expression.NumberStyle

expression   Required. An expression that returns an EndnoteOptions, Endnotes, FootnoteOptions, or Footnotes object.

NumberStyle property as it applies to the ListLevel object.

Returns or sets the number style for the ListLevel object. Read/write WdListNumberStyle.

WdListNumberStyle can be one of these WdListNumberStyle constants.
wdListNumberStyleAiueo
wdListNumberStyleArabic
wdListNumberStyleArabic2
wdListNumberStyleArabicLZ
wdListNumberStyleCardinalText
wdListNumberStyleChosung
wdListNumberStyleGanada
wdListNumberStyleGBNum1
wdListNumberStyleGBNum2
wdListNumberStyleGBNum3
wdListNumberStyleGBNum4
wdListNumberStyleHangul
wdListNumberStyleHanja
wdListNumberStyleHanjaRead
wdListNumberStyleHanjaReadDigit
wdListNumberStyleHebrew1
wdListNumberStyleHebrew2
wdListNumberStyleHindiArabic
wdListNumberStyleHindiCardinalText
wdListNumberStyleHindiLetter1
wdListNumberStyleHindiLetter2
wdListNumberStyleIroha
wdListNumberStyleIrohaHalfWidth
wdListNumberStyleKanji
wdListNumberStyleKanjiDigit
wdListNumberStyleKanjiTraditional
wdListNumberStyleKanjiTraditional2
wdListNumberStyleLegal
wdListNumberStyleLegalLZ
wdListNumberStyleLowercaseLetter
wdListNumberStyleLowercaseRoman
wdListNumberStyleLowercaseRussian
wdListNumberStyleNone
wdListNumberStyleNumberInCircle
wdListNumberStyleOrdinal
wdListNumberStyleOrdinalText
wdListNumberStylePictureBullet
wdListNumberStyleSimpChinNum1
wdListNumberStyleSimpChinNum2
wdListNumberStyleSimpChinNum3
wdListNumberStyleSimpChinNum4
wdListNumberStyleThaiArabic
wdListNumberStyleThaiCardinalText
wdListNumberStyleThaiLetter
wdListNumberStyleTradChinNum1
wdListNumberStyleTradChinNum2
wdListNumberStyleTradChinNum3
wdListNumberStyleTradChinNum4
wdListNumberStyleUppercaseLetter
wdListNumberStyleUppercaseRoman
wdListNumberStyleUppercaseRussian
wdListNumberStyleVietCardinalText
wdListNumberStyleZodiac1
wdListNumberStyleZodiac2
wdListNumberStyleZodiac3
wdListNumberStyleAiueoHalfWidth
wdListNumberStyleArabic1
wdListNumberStyleArabicFullWidth
wdListNumberStyleBullet

expression.NumberStyle

expression   Required. An expression that returns a ListLevel object.

NumberStyle property as it applies to the PageNumbers object.

Returns or sets the number style for the PageNumbers object. Read/write WdPageNumberStyle.

WdPageNumberStyle can be one of these WdPageNumberStyle constants.
wdPageNumberStyleArabic
wdPageNumberStyleArabicLetter1
wdPageNumberStyleHanjaRead
wdPageNumberStyleHebrewLetter1
wdPageNumberStyleHindiArabic
wdPageNumberStyleHindiLetter1
wdPageNumberStyleKanji
wdPageNumberStyleKanjiTraditional
wdPageNumberStyleLowercaseRoman
wdPageNumberStyleNumberInDash
wdPageNumberStyleSimpChinNum2
wdPageNumberStyleThaiCardinalText
wdPageNumberStyleTradChinNum1
wdPageNumberStyleUppercaseLetter
wdPageNumberStyleVietCardinalText
wdPageNumberStyleArabicFullWidth
wdPageNumberStyleArabicLetter2
wdPageNumberStyleHanjaReadDigit
wdPageNumberStyleHebrewLetter2
wdPageNumberStyleHindiCardinalText
wdPageNumberStyleHindiLetter2
wdPageNumberStyleKanjiDigit
wdPageNumberStyleLowercaseLetter
wdPageNumberStyleNumberInCircle
wdPageNumberStyleSimpChinNum1
wdPageNumberStyleThaiArabic
wdPageNumberStyleThaiLetter
wdPageNumberStyleTradChinNum2
wdPageNumberStyleUppercaseRoman

expression.NumberStyle

expression   Required. An expression that returns a PageNumbers object.

Remarks

Some of the constants listed above may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.

Example

As it applies to the CaptionLabel object.

This example inserts a caption at the insertion point. The caption letter is formatted as an uppercase letter.

CaptionLabels(wdCaptionFigure).NumberStyle = _
    wdCaptionNumberStyleUppercaseLetter
Selection.Collapse Direction:=wdCollapseEnd
Selection.InsertCaption Label:=wdCaptionFigure

As it applies to the ListLevel object.

This example creates an alternating number style for the third outline-numbered list template.

Set myTemp = ListGalleries(wdOutlineNumberGallery).ListTemplates(3)
For i = 1 to 9
    If i Mod 2 = 0 Then
        myTemp.ListLevels(i).NumberStyle = _
            wdListNumberStyleUppercaseRoman
    Else
        myTemp.ListLevels(i).NumberStyle = _
            wdListNumberStyleLowercaseRoman
    End If
Next i

This example changes the number style to uppercase letters for every outline-numbered list in the active document.

For Each lt In ActiveDocument.ListTemplates
    For Each ll In lt.listlevels
       ll.NumberStyle = wdListNumberStyleUppercaseLetter
    Next ll
Next lt

As it applies to the Footnote and Endnote options.

This example sets the formatting for footnotes and endnotes in the active document.

With ActiveDocument
    .Footnotes.NumberStyle = wdNoteNumberStyleLowercaseRoman
    .Endnotes.NumberStyle = wdNoteNumberStyleUppercaseRoman
End With

As it applies to the PageNumbers object.

This example formats the page numbers in the active document's footer as lowercase roman numerals.

For Each sec In ActiveDocument.Sections
    sec.Footers(wdHeaderFooterPrimary).PageNumbers _
        .NumberStyle = wdPageNumberStyleLowercaseRoman
Next sec