Questions tagged [ms-word]
For programming questions related to Microsoft's "Word" editor. Questions on general usage of the editor are off-topic for Stack Overflow; they should be asked on Super User instead.
ms-word
21,422
questions
0
votes
0
answers
7
views
How to add user details to MS Word doc using mail merge from MS Access query based on network username
I have an MS Word document that I would like to populate with username details, namely; FirstName, LastName, PhoneNo, MobileNo & EmailAddress. I have an MS Access database that has a table called ...
1
vote
0
answers
29
views
Content is out of order when using excel VBA to create a word document
The aim is to copy data from an excel table into multiple different tables on a word document.
The code should take the title from the 1st column, then use the other columns to generate a table. The ...
0
votes
0
answers
16
views
VBA Word Macro: How to Replace Page Number Fields in Headers and Footers with Plain Text?
I’m working on a VBA macro for Microsoft Word and need to replace page number fields in headers and footers with plain text. Specifically, I want to:
Replace all page number fields in headers and ...
0
votes
1
answer
10
views
How to reduce the gap between a line of text and a chart?
enter image description here
Hi.
I'm trying to add the source of a chart below it, however the distance between the line of text and the content of the chart is too big, as the chart has a big white ...
0
votes
1
answer
22
views
How can I ensure that bookmarklets made on bullet points don't overlap when we update them?
I have a doc with a lot of bookmarks that I need to update automatically via VBA Excel, so I have bullets point that go with bookmarks, as below.
- Fixe_2
- Fixe_3:
o Fixe_4
o Fixe_5
But ...
0
votes
1
answer
33
views
I want copy the paragraph that a comment has been added to in Word and put into an Excel table
i found a really simple macro in LinkedIn, from 'Harriet. L', to look at the Comments in a Word document and create an Excel table sowing the 'page, author, comment text & date created' for each ...
0
votes
0
answers
16
views
Copy range and format from excel and paste into new word doc
I need to have a button with a macro that copies a range of cells and their formatting/make it autofit width wise on an doc and pasted them into a new word document when the button is clicked.
This is ...
-1
votes
1
answer
41
views
VBA macro to set password to pdf files [closed]
I am trying to create multiple documents from word mail merge. Want to save them as both .docx as well as .pdf with password to open the file.
While I could successfully create word documents with ...
0
votes
2
answers
30
views
Macro in excel that creates 3 tables with page breaks at the end of each table in word over 3 documents. Need this on one document
I have a macro that takes three tables in Excel that are separated by a row of blank cells and produces three formatted tables in Word with page breaks after each table. At the moment it does this on ...
0
votes
0
answers
40
views
VBA code in word doc (finding/replacing strings in excel list) not updating to sentence case; other formatting works well
I have a VBA macro (code from the internet) that pulls scientific names from an excel sheet (sheet1, range A) and finds/replaces the s.names in the word document with the terms in the excel sheet. The ...
0
votes
0
answers
28
views
Python-Docx Table Row Border limit?
I'm having an issue with Table Row borders. All seems to be working great up to rows 250-260 in all tables. Although my script indicates the task is getting done, the output shows no borders after ...
0
votes
0
answers
19
views
'Loading' text ( loader ) in task pane while initial loading in word web add-in
I'm currently developing a task-pane based Word web add-in. However, I'm encountering an issue when I try to sideload the add-in. The add-in shows a persistent loading screen (see attached image). I'm ...
0
votes
0
answers
7
views
MS365 Word Add-in - Search for text ranges throws InteropServices.COMException (0x800A16C9) "An error occurred while saving the undo information"
these are the lines of code I use:
#region FindRanges
/*
* Erstellt eine Liste aus Ranges wo überall das gesuchte pattern vorhanden ist.
* Der Bereich der Range ist immer von Parent bis nach ...
0
votes
1
answer
44
views
Insert page break in Word document using macro in Excel
I am trying to have my macro make three tables in Word. It currently makes one big table and formats it correctly, but I can't find how to force a page break at the desired times. I found a macro that ...
0
votes
0
answers
19
views
MS365 Word Add-in - pdf export failed with InteropServices.COMException (0x80004005)
I use these lines of code in my VSTO C# AddIn to export the current document as PDF/A.
//Create path for PDF
String pathPDF = DocumentHandler.Document.FullName;
pathPDF = System.IO.Path....