G
Guest
This is my first post here, so greetings everybody.
I am making a user form to collect various client/order details and insert
them into a two page document. My vba knowledge is limited, and so far I've
been relying on google and some offline manuals for assistance. As I have a
few questions with regard to this form perhaps someone here will be able to
help.
In the document I have three tables. I need the following piece of code to
operate on the second table:
Dim oRow As Row
For Each oRow In Selection.Tables(1).Rows
If oRow.Cells(4).Range.Text = vbCr & Chr(7) Then oRow.Delete
Next oRow
Right now, if I execute it I get: runtime error 5941, the requested member
of the collection does not exist.
Any suggestions?
Sergey
I am making a user form to collect various client/order details and insert
them into a two page document. My vba knowledge is limited, and so far I've
been relying on google and some offline manuals for assistance. As I have a
few questions with regard to this form perhaps someone here will be able to
help.
In the document I have three tables. I need the following piece of code to
operate on the second table:
Dim oRow As Row
For Each oRow In Selection.Tables(1).Rows
If oRow.Cells(4).Range.Text = vbCr & Chr(7) Then oRow.Delete
Next oRow
Right now, if I execute it I get: runtime error 5941, the requested member
of the collection does not exist.
Any suggestions?
Sergey