All Questions
43 questions
0
votes
0
answers
51
views
VBA for Word code that removes paragraph rules and replaces them with cell borders
I'm trying to write some code that will replace certain paragraph styles that have a bottom border (in tables) with other paragraph styles that have no bottom border but a cell border instead (if that ...
0
votes
1
answer
86
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 showing the 'page, author, comment text & date created' for each ...
0
votes
1
answer
110
views
Select and copy all paragraphs in selection range word macro
I need all paragraphs that are selected and not even completely selected to be selected and copied. I just wouldn’t like to select them completely with the mouse and copy them.
I know how to select ...
1
vote
1
answer
76
views
New paragraph alignment style
As you know, Word offers several paragraph alignment options.
When aligning a paragraph to both sides, (CTRL+J), all lines (except the last) are attached to the left and right margins. The last line ...
-1
votes
1
answer
219
views
VBA to highlight all paragraphs with direct (non-style-based) formatting
I would like to write a VBA macro that highlights all paragraphs that have any kind of formatting applied, causing those paragraphs to not match their style.
Then I want to highlight in a different ...
0
votes
1
answer
290
views
Comparing the first paragraph of two documents
I'm trying to compare the first paragraph of two files with identical contents. One is the active file, one is a specified "Reference File."
The two ranges I'm using to store the contents ...
2
votes
2
answers
897
views
SwiftUI, How to set a word as a button in the paragraph?
I would like to make "here" a button on this note. Anyone could you tell me how to do that?
0
votes
1
answer
84
views
Change cross-reference text in middle of the text to lowercase using showfieldcodes
I want to change all the cross-reference text that are in middle of the text to lowercase, but not the ones at the beginning of a sentence.
The problem is that ActiveDocument.Paragraphs(row).Range....
0
votes
1
answer
421
views
How to Identify Paragraph that has a Duplicate?
I'm trying to identify paragraphs (first instance) in a Word document that have a duplicate (second instance).
This code identifies the second instance.
I'm trying to highlight the first instance in a ...
0
votes
0
answers
296
views
Is there any possibility for document paragraph-level tagging and filtering, e.g. by VBA or C#?
The MS Word document has the ability to mark tags at the file level, which can be used from Windows Explorer to make it easier to search for files by document’s tags.
Is there a similar feature in MS ...
1
vote
0
answers
689
views
python-docx adding return key symbols in find and replace if specified new line
My Code:-
from docx import Document
#open the document
doc=Document('teest.docx')
Dictionary = {
"number one ":"",
"number two ":"\n\n",
"number three &...
0
votes
1
answer
1k
views
How can I add a new paragraph at the end of a word document?
I would like to add a last paragraph after everything in the word doc that I have. I tried using this code, but the text is appended before my last table.
How can I make sure the text is always ...
0
votes
1
answer
112
views
Locate Vertical Position of the end of a Paragraph
I'm trying to insert a vertical line on the left hand side of a paragraph that has been selected. I can easily find the vertical position of the start of the paragraph using ".Information(...
0
votes
2
answers
673
views
Python: Read Word Document In Order
First time python user here. I'm trying to go through a word document containing both paragraphs and tables. I've figured out how to go through all paragraphs in a document and all tables in a ...
0
votes
3
answers
3k
views
VBA WORD: find a paragraph that has a specific style
I am trying to write a code in VBA, where I will get the number of a paragraph that will have a specific style (let's say Heading 1).
I am going through a loop and unfortunately I am getting such an ...