Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Using Python-docx to update cell content of a table

doc = Document('filename.docx')
print(doc.tables)

table = doc.tables[0]
table.cell(0, 0).text = 'new value'

doc.save('filename_updated.docx')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Using #update #cell #content #table
ADD COMMENT
Topic
Name
9+4 =