WD: WordBasic Examples: TableUpdateAutoFormat |
Q106331
This article contains a sample macro that demonstrates the use of the following WordBasic statement or function:
TableUpdateAutoFormat
This article supplements the information in online Help. To open this Help
topic in Word for Windows, click Contents on the Help menu and then
choose the "Programming with Microsoft Word" topic. In Word for the
Macintosh, click the Help icon, select Microsoft Word Help and choose the
"Programming with Microsoft Word" topic.
TableUpdateAutoFormat
Example:
Sub MAIN
TableInsertTable .ConvertFrom = "", .NumColumns = "4", \
.NumRows = "4", .InitialColWidth = "Auto", .Format = "10", \
.Apply = "167"
TableSelectRow
TableInsertRow
CharLeft 1
MsgBox "The table format is no longer correct"
TableUpdateAutoFormat
MsgBox "TableUpdateAutoFormat has corrected the problem"
End Sub
Additional query words:
Keywords : kbmacro kbprg kbdtacode kbmacroexample winword word6
Issue type : kbhowto
Technology :
|
Last Reviewed: November 4, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |