Ошибка «Пользовательский тип не определен»

Я получаю вышеуказанную ошибку при попытке выполнить этот макрос. Я довольно плохо знаком с макросами и программированием в целом, поэтому, пожалуйста, прости невежество.

Спасибо

Sub DeleteEmptyRows()

Dim oTable As Table, oRow As Row, _
TextInRow As Boolean, i As Long

Application.ScreenUpdating = False

For Each oTable In ActiveDocument.Tables
    For Each oRow In oTable.Rows

        TextInRow = False

        For i = 2 To oRow.Cells.Count
            If Len(oRow.Cells(i).Range.Text) > 2 Then
                'end of cell marker is actually 2 characters
                TextInRow = True
                Exit For
            End If
        Next

        If TextInRow = False Then
            oRow.Delete
        End If
    Next
Next
Application.ScreenUpdating = True

End Sub

Ответы на вопрос(2)

Ваш ответ на вопрос