找不到Word 2007到Word 2003 VBA方法

时间:2013-05-27 06:24:17

标签: vba word-vba incompatibility word-2003

此代码是用Word 2007编写的。

    With Selection.Tables(1)
    If .Style <> "Table Grid" Then
        .Style = "Table Grid"
    End If
    .ApplyStyleHeadingRows = True
    .ApplyStyleLastRow = False
    .ApplyStyleFirstColumn = True
    .ApplyStyleLastColumn = False
    .ApplyStyleRowBands = True
    .ApplyStyleColumnBands = False
End With

客户端正在使用Word 2003,并且存在不兼容问题。他说: enter image description here

有没有办法让Word 2003中的代码兼容。

1 个答案:

答案 0 :(得分:2)

这是一个向后兼容性问题 - 在Office 2003中没有applystylerowbands。