Questions tagged [word-2016]

Microsoft Word 2016 is a commercial document editing program is widely used for creating richly formatted documents for printing and distribution.

Supported Operating System

Windows 10 , Windows 7, Windows 8

53 questions
6
votes
2 answers

MacOS Automator + Applescript solution for exporting docx to pdf

Scratching my head after reading lots of different threads on this and tried a bunch of scripts but none seem to work. I'd like to use Automator to automate Word 2016 conversion of a selection of docx files to pdf. Used the following Automator…
Base_v
  • 308
  • 5
  • 13
5
votes
2 answers

VBA Sub optional parameters with default values

I am trying to write a VBA sub that allows optional parameters with default values. I tried the sample code from Microsoft Docs - Optional Parameters (Visual Basic) but it leads to the sub not showing on list of available subs (i.e. from View…
kaanchan
  • 165
  • 1
  • 10
3
votes
2 answers

Regular expression to find the beginning of a paragraph in Word

I'm using Word 2016 and I need to delete some paragraphs, beginning or ending with known words. For example, in the following text: ¶ Lorem ipsum dolor sit amet, consectetur adipiscing elit.¶ Sed do eiusmod tempor incididunt ut labore et dolore…
mafap
  • 371
  • 3
  • 18
  • 40
2
votes
1 answer

how to set right to left for text in word using python-docx

I cant set text direction (note: not text alignment) into right to left using the python-docx library. Do you have any idea to solve this problem? from docx import Document from docx.enum.style import WD_STYLE_TYPE from docx.enum.text import…
mehdi parastar
  • 737
  • 4
  • 13
  • 29
2
votes
1 answer

Can a quick access toolbar button call a macro from a specific project?

The following statements include information from MSDN. When calling a procedure in VBA, one must make sure that the another module in the project doesn't have a procedure with the same name. If that's the case, you have to specify the module to…
vic
  • 292
  • 3
  • 14
2
votes
1 answer

OfficeJS Word Addin - Modify content control in the whole document ( including header/footer )

Due to the office API limitation ( API is only restricted to rich text content controls). We had to insert content controls as an OOXML object. It inserted the content control correctly but office API doesn’t recognize that as a content control. For…
Imran Khan
  • 117
  • 2
  • 11
2
votes
2 answers

Populate MS-Word ContentControl Text Boxes from UserForm TextBoxes with same name/tag?

I have created a Visual Basic for Applications program in Microsoft Word (2016, 64bit, Windows 10) It consists of a UserForm with about 30 TextBoxes and a submit button. Each TextBox has a unique name and tag. I also have the same number of…
James
  • 1,928
  • 3
  • 13
  • 30
2
votes
0 answers

MS Word - using a date variable without macros

I want to create a Word template which will: a) prompt user for a date b) display that date c) calculate other dates from that date. I'm using MS Word 2016. I've never done anything like this in Word but after doing a bit of research I see that…
Kamiccola
  • 43
  • 3
2
votes
2 answers

Word VBA 2016, table: no response when setting shading of cells with loop

In Word 2016 VBA I want to set the shading of each cell of a table with a loop. This seems to work for tables up to a size of about 15*15. With tables such as 20*20 or larger Word does not respond any more. Program execution seems to be correct…
ht2016
  • 21
  • 1
1
vote
0 answers

Ensure Office-js addin available in ribbon, sharepoint Word 2016

I am deploying an Office.js add-in for MS word using sideloading, AppSource, and private sharepoint catalogs for Office 2016. In some cases, I've observed that once Word is restarted, the add-in vanishes from the ribbon and has to be re-added using…
James
  • 118
  • 1
  • 10
1
vote
0 answers

Inner Content control properties disappeared in word 2016

I inserted a new content control into the document. Bind the custom XML to content control. Insert the rich text content control inside the content control which is bound with custom XML. Open the "Properties" dialog, add Title, check/select the…
Prasad-yadav
  • 121
  • 1
  • 1
  • 5
1
vote
1 answer

MS Word 2016: Remove all protected comments using VBA

I would like to remove in an exported word document (.docx) all protected comments using VBA. The comments are protected by some kind of fields they rely on (however I couldn't find a way to remove this protection with or without VBA). Those…
SteffPoint
  • 479
  • 2
  • 9
  • 24
1
vote
2 answers

Word 2016 VBA loop until end of document

I've looked at many different answers online but have not been able to find a solution that fits my code. This is my first time writing VBA in Word (have some moderate experience in Excel). I thought this post might be what I need but it doesn't…
diane
  • 13
  • 1
  • 4
1
vote
1 answer

How to prevent Repeat Content Control nesting (word 2016)

I'm having an issue with a form I'm building in word 2016 and can't really find anything from Microsoft except the general documentation for ContentControls and BuildingBlocks. Here is an example of a simple Word form I'm trying to create with add…
user10071781
1
vote
2 answers

WordBasic to modern find directory VBA

Currently I'm having an issue with WordBasic my company recently decided to update their system from 2007 to Word 365 but, according to Google, WordBasic is a relic from Word 97 which no longer works on Word. I need to retrieve the directory of…
Alex Gale
  • 55
  • 1
  • 7
1
2 3 4