Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python word-docx
#1
Hi, I am working with the python library python-docx and trying to extract information from a MS Word table and place it neatly in Excel. The table consists of two columns but some cells are merged. For instance, the first row in the table might have one large spanning cell in the left column and in the right-hand column, there might be 2 or 3 sub-rows for that one spanning cell on the left. Is there a way to have a link between the two? For example, I want to search for a certain criteria in the column on the right, find it, then get the corresponding information in the left-hand column. Is there a way to keep track of the row,column indices or something of that nature? Any help is much appreciated. Thank you very much.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  no module named 'docx' when importing docx MaartenRo 1 841 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Replace a text/word in docx file using Python Devan 4 3,290 Oct-17-2023, 06:03 PM
Last Post: Devan
  python-docx: preserve formatting when printing lines Tmagpy 4 2,089 Jul-09-2022, 01:15 AM
Last Post: Tmagpy
  python-docx- change lowercase to bold, italic Tmagpy 0 1,399 Jul-01-2022, 07:25 AM
Last Post: Tmagpy
  python-docx regex : Browse the found words in turn from top to bottom Tmagpy 0 1,516 Jun-27-2022, 08:45 AM
Last Post: Tmagpy
  python-docx regex: replace any word in docx text Tmagpy 4 2,215 Jun-18-2022, 09:12 AM
Last Post: Tmagpy
Question Problem: Check if a list contains a word and then continue with the next word Mangono 2 2,487 Aug-12-2021, 04:25 PM
Last Post: palladium
  Docx Convert Word Header to Body CaptainCsaba 3 2,752 Jun-02-2021, 01:25 PM
Last Post: Larz60+
  Сombine (Merge) word documents using python-docx Lancellot 1 11,516 May-12-2021, 11:07 AM
Last Post: toothedsword
  How to add run in paragraph using python-docx? toothedsword 0 2,777 May-12-2021, 10:55 AM
Last Post: toothedsword

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020