WD: Level Argument Does Not Correspond to Heading Level (140180)
The information in this article applies to:
- Microsoft Word for Windows 6.0
- Microsoft Word for Windows 6.0a
- Microsoft Word for Windows 6.0c
- Microsoft Word for the Macintosh 6.0
- Microsoft Word for the Macintosh 6.0.1
- Microsoft Word for Windows NT 6.0
- Microsoft Word for Windows 95
- Microsoft Word for Windows 95 7.0a
This article was previously published under Q140180 SYMPTOMS
When you create a macro to apply page numbers that include chapter
numbering, the Level argument does not pick up the correct heading level.
For example, the following macro applies page numbers that incorrectly
include Heading 2 numbering, not Heading 1 numbering:
Sub Main
FormatPageNumber .ChapterNumber="1", .Level="1"
End Sub
When you record the macro, Word specifies the Level consistent with the
documentation, for example:
Sub Main
FormatPageNumber .ChapterNumber="1", .Level="0"
End Sub
WORKAROUND
Modify the Level argument so it is equal to the heading level minus 1. For
example, to specify a Heading 1 level, the argument is:
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. We are researching this problem
and will post new information here in the Microsoft Knowledge Base as it
becomes available.
REFERENCES
"Microsoft Word Developer's Kit," version 6.0, page 477
"Microsoft Word Developer's Kit," Second Edition, pages 507-508
Modification Type: | Minor | Last Reviewed: | 8/17/2005 |
---|
Keywords: | kbbug kbdtacode kbmacro kbprogramming KB140180 |
---|
|