ms-word

Word through Excel - How to select a portion of text?

女生的网名这么多〃 提交于 2020-06-13 06:16:12
问题 I'm working on an Excel-Word VBA code that runs through several Word files and extracts data for the Excel table (where the VBA code takes place). In each of the Word files there will be a "tool" description followed by a reference for this tool (9 char plus a version char) like this : This can be inline with the text, in two paragraphs like for the "tool 1", or in a table cell like the "Tool 2".... An image is included next/after the reference. Of course, there can be more than one Tool...

How to specify the font used for word doc exported using pandoc?

ぃ、小莉子 提交于 2020-06-11 20:05:51
问题 Rendering a microsoft word document using pandoc. The font seems to default to Calibri for headings and Cambri for body text. Goal is to have the file use Arial or Times roman fonts. I don't want to touch/edit/have anything to do with the file in word. How can I set the font that will be used in Word™ from either the multi-markdown source or in the call to pandoc? Pandoc command: pandoc -s my_markdown.txt -o whycambriafont.docx This question: pandoc-generated docx misses italic variables in

How to open new Word docx document in word Add-in

限于喜欢 提交于 2020-06-10 02:04:38
问题 I have developed a word add-in using word javascript api. My Document .docx file is on server and i need to open that .docx document as a new word document on a button click in add-in. Please guide me how i can open new document in word add-in. Thanks. 回答1: There is a new method we are adding to the API that you can actually use to achieve this. Notice that is in preview, which means will be in production in a couple of months. You need latest Office version plus reference our preview office

How to prevent word from crashing when using batch find and replace macro?

允我心安 提交于 2020-06-01 05:12:47
问题 I am using this code which is a batch find and replace macro. It finds and replaces the words in the document by reading the replacement words from another document (text.docx). This works absolutely fine when there are a handful of changes (i.e. less than 1 page). However, I hope to use this macro on documents that are 10-20 pages. When I use it, the word document just immediately crashes (starts not responding) and has to be forced to quit. Does anyone have any tips on what can be done to

python-docx: Parse a table to Panda Dataframe

≯℡__Kan透↙ 提交于 2020-05-17 08:30:26
问题 I'm using the python-docx library to extract ms word document. I'm able to get all the tables from the word document by using the same library. However, I'd like to parse the table into a panda data frame, is there any built-in functionality I can use to parse the table into data frame or I'll have to do it manually? Also, is there a possibility to know the heading name in which the table lies inside? Thank you from docx import Document from docx.shared import Inches document = Document('test

VBA Word: Deleting InlineShapes seems to change the end of For Loop

做~自己de王妃 提交于 2020-05-17 07:46:30
问题 I have encountered a strange behaviour in VBA. I have written a code that deletes InlineShapes of certain size (and write them into a txt File). The code results in an error because the end of my for loop seems to change during running. Can someone help? Function findAndRemovePics() Dim i As Integer Dim count As Integer Dim str As String currpath = "..." 'Set Objects Set xlApp = CreateObject("Excel.Application") Set xlWB = xlApp.Workbooks.Open(currpath & "linkliste_http.xlsx") 'Replace String

hiding row in dynamics 365 template table if record is empty

只谈情不闲聊 提交于 2020-05-17 07:46:08
问题 I created a Word Dynamics 365 template for the Quote entity, as shown in the photo below. i'm trying to hide the entire tax field based on the following condition: if tax is empty then hide the entire tax row, meaning the heading and the value. And display it if it has a value. Is this possible in word? 来源: https://stackoverflow.com/questions/61759261/hiding-row-in-dynamics-365-template-table-if-record-is-empty

How to insert table and bookmark into Word, one per page

依然范特西╮ 提交于 2020-05-17 06:43:14
问题 I have a Word document that starts with one table on page one, and then depending on the data in an Excel file, I want to start inserting tables in subsequent pages, and just before each table, I want to insert a text blurb or caption. I'm using a bookmark to insert this text. After inserting the table, I want to add a page break, so that I can start the next table insertion on the next page. The result I get from the code below places the tables and bookmarks in incorrect order, on seemingly

How to insert table and bookmark into Word, one per page

坚强是说给别人听的谎言 提交于 2020-05-17 06:43:10
问题 I have a Word document that starts with one table on page one, and then depending on the data in an Excel file, I want to start inserting tables in subsequent pages, and just before each table, I want to insert a text blurb or caption. I'm using a bookmark to insert this text. After inserting the table, I want to add a page break, so that I can start the next table insertion on the next page. The result I get from the code below places the tables and bookmarks in incorrect order, on seemingly

MS Word prevents edit protected document because word says document changed by another author while no one has edited it

Deadly 提交于 2020-05-16 07:40:05
问题 I've implemented WebDAV server using WebDAV-Servlet. I open a document by through WebDAV and I make a change on it,when I want to save the document, word alert me that this document changed by another user while no one had edited this document. I don't understand the problem. Who has edited this document? Is there any problem with my Lock implementation? 回答1: After a while I found out the solution. The root cause of this problem is changing lastmodified date between lock and unlock requests.