I have been trying to figure out how to add cell 0 from all tables in a word document to my_list , I managed to add from a specific table placement number (96) but can't seem to pull all tables data, I used this for table array number 96 and it worked
`tables = list(d.tables)
tbl = d.tables[96]
my_list = []
for rw in tbl.rows:
my_list.append(rw.cells[0].text)
print(my_list)
tried a lot of different options to iterate all tables and add to my_list, one being below but it gives the error 'Table' object has no attribute 'cells'
my_list = []
tbl = list(d.tables)
for val in tbl:
for rw in tbl:
my_list.append(rw.cells[0].text)
print(my_list)
any help is greatly appriciated