Word 2007 to Word 2003 VBA method not found

173 Views Asked by At

This code was written in 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

The client are using Word 2003 and there was an incompatibility issue. Saying: enter image description here

Are there any ways to make the code compatible in Word 2003.

1

There are 1 best solutions below

0
AudioBubble On BEST ANSWER

that's a backwards compatibility issue - applystylerowbands was not available in Office 2003.