Hi all,
Scratching my head over this issue.
I have a module that's like this:
That fine and is working properly... but when I need to adjust it to the following:
Line 3 is throwing me Run-time error '5941': The requested member of the colleccton does not exist.
Aren't they equal to each other? Why does the above work but not the other?
Scratching my head over this issue.
I have a module that's like this:
VBA Code:
For Each Table in Doc.Tables
For Each Row in Table.Rows
ConvertedRow = Row.ConvertToText
' Do Stuff
Next Row
Next Table
That fine and is working properly... but when I need to adjust it to the following:
Code:
For Each Table in Doc.Tables
For Cnt =1 to Table.Rows.Count
ConvertedRow = Table.Rows(Cnt).ConvertToText
' Do Stuff
Next Cnt
Next Table
Line 3 is throwing me Run-time error '5941': The requested member of the colleccton does not exist.
Aren't they equal to each other? Why does the above work but not the other?