Quantcast
Channel: Word for Developers forum
Browsing all 4350 articles
Browse latest View live

VB 6 - Mail merge and document splitter combo w/Save As from merge field...

Hi everybody - I will preface this question with, I'm very new to this -- in MS Access I have a letter management module that spits out a mail merge template in Word that I then clickfinish and merge....

View Article


Macro to uncover hidden content

Hi,I need a macro to find and highlight text or value or any character in the table which is not appears in print view mode in a word file.There is a table in the word file I have attached in the below...

View Article


Reporting a bug in Word

connect.microsoft.com is not accepting bug reports for Word so I'm posting it here.Open the file www.windward.net/temp/Bug_16707.docxMove the cursor over the text [Customer forEach] (or any of the text...

View Article

How to show the linked text of a field code

I currently have a word document which contains links to an external excel file.   I'm trying to write a script which finds each link in the word doc, and displays the associated link location along...

View Article

Ms word macro - Header & Footer

Hi,In word document I need a macro to remove text from header & footer but keep it in the same page even there are section breaks exist.The text should not move to next page as well, it should...

View Article


Using office interop on server

Dear all,I am using office interop on server side even though it is not (really) recommended.But I need to render some complex gridviews as HTMLTextWriter-objects to build up a 1:1 copy of the gridview...

View Article

How to implement a .exitmacro

I would like to cause a macro to run after the user inputs to the last content control on a form. The sample given in the MSDN library seem straight forward and I know how to create the macro.  I just...

View Article

Content control/XML events

I am using Word 2010, Sharepoint 2010, and an Infopath 2010 Document Information Panel (DIP).  Fields in the DIP are included as Quick Parts/Content Controls in a Word document. I have rules in the DIP...

View Article


Range.FitTextWidth - How Do I Find The Original Width?

I can use Word.Range rng = Globals.ThisAddIn.Application.ActiveDocument.Range(start, end) to get the range of the text from a start and end position. My goal is to find the width of this range (in the...

View Article


PowerShell 3 Type Mismatch

I have a script that is used to password protect Word documents from being edited. It seems to work perfectly in PowerShell 2, but for some reason, in PowerShell 3, it throws the following...

View Article

Error protect document being co-authored

Hi, I have a problem with my word addin in word 2010.The addin handles a special type of documents and support the automatic refresh of document parts. Usually, the document is protected. Only during...

View Article

Integrating Word with Winforms - Dialog.Display() return values

Hey there,I'm attempting to integrate Word's spell checking functionality into a WinForms app.  Here's the relevant code:oWordServer.Visible = True oWordServer.Activate() iResp =...

View Article

Rename styles in Word document

Hi thereI have been trying to rename styles in a bunch of Word documents but am kind of stuck as NameLocal is read only.As a workaround, I vaguely thought of duplicating the style to be replaced, then...

View Article


How to view a Type Library File Conents

I realize this is not the optimal place to ask this question, but I don't know where a better place would be.I have a Word template Add-in that references a type library file EncodeFSB.tlbI am...

View Article

Macro for Highlight hanging indent in table

Hi,Is there any macro to find and highlights hanging indentation of paragraph in the cells of a table which goes less than 0 inch left in a word document.The macro no need to check other paragraphs...

View Article


Selecting a RibbonEditBox and Detecting when RibbonEditBox is selected for...

Goal: I'm working on a VB MS Word 2010/2013 Add-In that utilizes several RibbonEditBoxes. I'd like to add functionality where when a user clicks "tab" in one of the RibbonEditBoxes another...

View Article

How Do I Insert A Line Break To A Word Document Programatically?

In Word 2010, adding a "\n" character to the text of a Range adds a paragraph break, which adds more space than a line break does. I have tried: "\n", "\u2028\n", '\r", and "\r\n" all of which seems to...

View Article


Word 2010 VBA duplex printing

Is it possible to set the 'print both sides' option on the new 'File>Print' screen in Word 2010 using VBA? I can't use a API workaround as I don't have the necessary permissions to change the...

View Article

Unable to access VBA code in .docm macro

I am able to follow the same steps as described below to edit Excel macros without any issues, so I'm not certain as to what the issue is with the Word macro.I'm using Word 2010 x86 on x64 Windows 7...

View Article

Programatically add footer to word documents using C#

Hi,The code below creates the following equation in all the footers in a Word Document: IF {PAGE} = {PAGENUM} "{AUTHOR}"Which displays the following:Page one: IF 1 = 2 "Author" Page two: IF 2 = 2...

View Article
Browsing all 4350 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>