Open
Description
Good evening,
I have two document files and I need to make the first document file hyperlink to the other one from the text I extracted from the table cell
wordDoc = Document(r'testfile.docx')
for table in wordDoc.tables:
for row in table.rows:
for cell in row.cells:
if cell.text == "page" or cell.text == "subject":
pass
else:
if cell.text.isdigit():
# i need to add hyperlink to this cell text to that file
# cell text will be like 3
add_hyperlink(cell.text, "test2.docx#3")
wordDoc.save('demo.docx')