Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
71 views

Inject a page break before numbered list in MS word

I have a document with 70+ questions in it. Most of the questions were numbered using MS Word's numbered list. I need to inject a page break before each of these questions so that they are on their ...
Alexander Dixon's user avatar
0 votes
1 answer
463 views

How to fix uneven space between words in Microsoft Word 2016?

I have 8 pages of paragraphs with uneven space between words, I mean, sometimes one, sometimes two or three spaces between words. The uneven space intervals were originated from a macro fro word that ...
Pablo Rojo's user avatar
0 votes
1 answer
394 views

Macro to Remove Spacing Between Graphics/Text in Word 2010 Document?

I frequently create Word (version 2010) documents that have only graphical items, and occasionally with some text beside a graphic, such as "New!" (that I would like to keep). I would like ...
Cfguy100's user avatar
1 vote
2 answers
902 views

Create different margin setting for section 2 (dynamically)

I have a Word template that has for starting only 1 page and that page has specific margins and header/footer pictures. The problem is that if the user fills the 1st page and jumps to the 2nd page or ...
LightZumo's user avatar
  • 111
0 votes
1 answer
628 views

Globally adjust table borders

I have a very large Word document with 100's of tables, where all borders need to be at 1 pt width. How do I make this happen for all existing tables?
Cheire's user avatar
  • 1
1 vote
0 answers
3k views

Written Excel VBA to Copy text from one Word document to another Word document - Footer formatting is not retained

Please help me on the issue. I have successfully copied the content from one word document to another word document. But the footer format is changed after paste the content. Below is my code. Sub ...
user1055041's user avatar
3 votes
1 answer
349 views

Changing the formatting of white-space to match the adjacent formatting, intelligently?

Microsoft Word affords the ability to search for formatted text and to replace it and the formatting. This feature is great in my line of work, where I have to convert Word documents into online ...
Alexander Dixon's user avatar
0 votes
2 answers
2k views

Looking for a macro to increase a number by 1 in a Word document

I have a Word document that other users can access and change (on the same computer). At the top of that document is a line that says "Version # XXX". What I would like is to be able to run a macro ...
Marco Polo's user avatar
1 vote
0 answers
18 views

Word 2010 - Coversheets

We have created standard coversheets for several projects. These coversheets are exchanged on standard documents to make it client specific. The font type of these coversheets is Arial. It seems that ...
Arjen's user avatar
  • 11
3 votes
2 answers
10k views

Apply border style to all pictures with VBA in MS Word 2010

I have a large Word docx file with text and many pictures. I would like to apply a border/frame style to all pictures at once. I do not want to do that individually for all pictures. So I believe a ...
Rick Hellewell's user avatar
0 votes
1 answer
731 views

Field code IF statement not working

I have a simple IF statement which should be checking whether a docvariable is set to YES or NO. Regardless of whether it's Y/N, the document is including the "Some text here" part and the second ...
Syntax Error's user avatar
2 votes
3 answers
926 views

Word's Find/Replace Modal in VBA

I want to prepare and show the Find/Replace dialog. However, the following code shows the dialog in a modal status, and you can't get to the document text. Any ideas how make it modeless, just like ...
ForEachLoop's user avatar
2 votes
1 answer
521 views

How to save Japanese and Korean characters in a Word 2010 VBA export?

I have a Word 2010 document with a 3-column table. The rows have closed caption texts for use in an instructional video. Example row: I am running a VBA sub to save the captions in each of the three ...
Shoe's user avatar
  • 145
0 votes
0 answers
723 views

MS Word 2010: Invalid Procedure Call or Argument

In MS Word 2010, I'm getting an error when using a macro to call a subroutine contained in another template: Run-time error '5': Invalid procedure call or argument This pops up when I run the macro ...
Steve G.'s user avatar
  • 203
2 votes
1 answer
910 views

How do you make values auto-increment in headers?

I've created a macro that adds a page at the end of a document and changes the title text in the Header. I want to be able to add multiple pages and have the letter in the title auto-increment: ...
ShemSeger's user avatar
  • 184
0 votes
0 answers
929 views

How to autofill content controls based on a seperate dropdown list in Word?

I have a form with multiple fields. Three of these fields are dependent on the selection chosen in a dropdown list at the top of the form. For example: if Location = New York City, then the ...
Leigh598's user avatar
0 votes
0 answers
142 views

Use VBA in Word 2010 to search and manipuate a string

I have a macro that uses wildcards to find a particular string. I want to find another string within the result (preferably using wildcards), extract that substring and do something else with it. I ...
user348514's user avatar
0 votes
0 answers
902 views

How to use Selection.Paragraphs.Count in Word to repeat a process X number of times

I select X number of paragraphs in Word and want to activate a macro that performs the same action on each paragraph. The action is adding a style separator before the first period in each paragraph ...
kurt's user avatar
  • 9
1 vote
1 answer
6k views

Only Show a Watermark When Document is Printed

I have a series of ISO controlled documents that need to have a watermark appear only when printed that says something like "UNCONTROLLED WHEN PRINTED". This watermark would appear in the footer of ...
qroberts's user avatar
  • 5,249
3 votes
2 answers
2k views

Word 2010 VBA applying styles but not changing font

I don't use VBA that often, and I'm trying to put together a macro which selects all text in the document with font size 13.5 pt and changes its style to Header 1. So far I have the below code: Sub ...
Lobo's user avatar
  • 53
1 vote
0 answers
239 views

MS Word 2010 - How do I create a universal macro that will auto-insert a header if none exists?

I'd like to create a macro enabled template that will automatically insert a header into a document if none exists. This is in order to work around a printing issue that cuts off the top of the ...
TheyCallMeGreg's user avatar
4 votes
2 answers
13k views

Convert tracked changes to highlighted

I am looking for an automated way to convert tracked changes in Microsoft Word 2010 to highlighted text. So, in essence what I'd like to do is: Highlight all text fragments with tracked changes ...
Rob Hall's user avatar
  • 143
7 votes
3 answers
32k views

How to add custom styles to navigation pane or change them with VBA

I have a Word2010 document that was created by a tool from Axure. Each heading is formated with a custom style ("AxureHeading1", "AxureHeading2", "AxureHeading3"). I was ...
surfmuggle's user avatar
0 votes
1 answer
78 views

Loop in Active Table Cell

I am now working from the top of the Active Cell with this code: Selection.EndKey Unit:=wdLine Selection.TypeText Text:=", " Selection.Delete Unit:=wdCharacter, Count:=1 I need it to loop until the ...
Amanda C's user avatar
1 vote
2 answers
2k views

How do I split a directory when a field changes in Word 2010?

I'm creating a directory mail merge in Word 2010 using an xlsx file as the record source. One of my fields is "Manager". Most of the fields will be different on every line, but Manager will be ...
SinisterBeard's user avatar
1 vote
1 answer
456 views

Convert table to fit print layout width

I have a bunch of word docs that I've converted from HTML, which look OK in web layout, but when we switch to print layout, they are chopped off on the right hand side. I have a macro I use to convert ...
Zach's user avatar
  • 1,018
3 votes
1 answer
5k views

Break link to picture programatically in MS Word 2010

I have a Word document with pictures that are linked. I want to embed them to the word document, but I do not want to do it manually. Manually going to: File --> edit links to files --> selecting and ...
exalt's user avatar
  • 41
0 votes
0 answers
392 views

Can a Word 2010 document be used to gather information and create documents based on the input?

Here is the problem I am trying to solve, and my question is, "Can this be done in MS Word 2010?" MS Word 2010 form is given to user User returns form to me, completely filled out Based on the ...
Michael Paul's user avatar
0 votes
0 answers
384 views

Hotkey to select content of the current cell

is there a hot-key or a sequence of hot-keys to select the content of a table-cell in MS-word? the cursor is within that cell. All I found is Tab for next cells content and Shift+Tab for previous ...
Stefan's user avatar
  • 1
0 votes
1 answer
5k views

How can I apply a style to the footer in Word 2010 with VBA?

I have a macro in a Word document that generates a footer based on Bookmarks. It works, except for one detail: in one of the Ref-fields in the footer, the font is always incorrect after updating. ...
user 99572 is fine's user avatar
3 votes
1 answer
891 views

Macro Find: Is there a macro to Format a Word Document as if it were being created in VBA?

I have a lots of code (for Excel) in VBA and would like to transfer a copy of it into a Word document. Does anyone know of a macro that will format the Word document to treat the code as if it were ...
B-Ballerl's user avatar
  • 256