![]() ![]() I was able to create bookmarks to external urls using the code in this pageĪdding an hyperlink in MSWord by using python-docx Once a reference run is found, I don't know how to mark it as a bookmark or how to create a hyperlink to that bookmark in the results table. Some of the documents are 100 pages, so I want to make it easier for the user by creating internal hyperlinks in the search result table, so it will bring you to the location in the document where the search result was detected. Set hlink = oRng.Paragraphs(1).Range.I have written a script using python-docx to search word documents (by searching the runs) for reference numbers and technical key words, then create a table which summarizes the search results which is appended to the end of the word document. Set newfield = (oRng, wdFieldEmpty, "HYPERLINK \l "
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |