Category "ms-word"

Apply code to active document not document opened with Documents.Add

I got a VBA project from colleague who is retired. I have to change a function: Documents.Add Template:= _ "c:\word\Link.dot", _ NewTemplate:=False, Doc

Importing Graphs from external simulating software to Word Document

I looking to automate the process where I am supposed to the run the simulation to study around 100 different charts, and then exporting them to the word file.

Rename Word mailmerge fields in VBA

I want to rename mergefields in a Word document. I use the following script (based on Change value of Word MailMerge field using VBA). I run the script and I se

Set the width of regulartable() when exported in word document

Im trying to export a dataframe to word using knitr and regulartable() but my table does not fit in the word page. --- title: "Correlation table" author: "mk" d

Microsoft.Office.Interop.Word in .NET 6.0 - Change builtin document property

Using the Microsoft.Office.Interop.Word.Document interface in C# you can get/set the document's built-in properties (Author, Title, Subject, Creation date,...)

When a call made to Word.run function, I am getting 'Word' is undefined in word 2016

Issue: Here I am using an word add-in in word 2016. When a call a function which uses Word.run is giving an error as 'Word' is undefined. The add-in file is wor

Php not updating word document

I had created an automation system with php which takes information straight from a contact form on my website and fills in the information into a word template

Add filenames to an array and pass it to a sorting function as a string argument

The goal is to provide a folder choosing dialogue to read file names and paste them into the open Word document with the file names being the title (above the p

word object model - active document event when clicking on FILE

I'm developing an MS Word add-in. In newer MS Word editions, there is the "FILE" option in the menu bar which opens an interface where you can select a recent d

Getting word count of doc/docx files in R

I have a stream of doc/docx documents that I need to get the word count of. The procedure so far is to manually open the document and write down the word count

How to set table width percentage using office js

I am working on Office JS word addin project. I am creating a table with 4 columns. I want to set width percentage to 30%,30%,20%,20% respectively. How can I se

[powershell]Pasting table from Excel to Word, autofit table

Currently working on a robot where I want to download an excel file from a system, copy paste the contents of the excel file to a word file as an embedded excel

Getting text from the pointer till the end of the document in JS Word api

How can i get the text in range from the current location of the cursor till the end of the file? I use JavaScript Word api.

Unable to use runas with winword 2016

I'm trying to run winword (Office 2016) as another user from an administrator command prompt: runas /user:[local administrator user] "C:\Program Files (x86)\Mic

Set table column widths in Word macro VBA

1. What I'm Trying To Do I have a folder with 84 Word documents (.docx). Every document contains a table of identical layout (some of the documents span across

Setting Metadata in Word and Retrieving in Excel

I'm trying to write a program that updates a Word document's metadata with content control boxes. The Excel document then loops through a directory that holds t

Extract text content from PPT and output file as a word doc

Taken dis codes from random sites using for extract the text content in Slide and Notes section from PPT slides. But the output file given as a NOTEPAD. I want

Import JSON data into a Microsoft Word template?

I am currently working on an application that grabs information from an API and returns it as JSON. The purpose of all the data is to fill in a Microsoft Word d

Mass Find & Replace including subfolders

I don't really know VBA but have had some success with manipulating code in the past. I'm getting stuck with this one, where I tried to mix 2 different ideas in

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&r