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

Recording a macro of extracting all Email addresses in a document,but it...

Hi,allI extract all Email addresses in a document using  the function of "Find" and record the process as a macro.But the macro can't run successfully.I want to know why the macro coming from  "Record...

View Article


Question about Word GoTo method

Why does this work:Selection.GoTo What:=wdGoToPage, Name:=2And this doesn't work:ActiveDocument.Range.GoTo What:=wdGoToPage, Name:=2How do a refer the first character of a page without selecting...

View Article


Where I can get user custom comparison settings for Word 2010?

Hi all,For word comparison API I want to pass comparison settings that user customized in native Word Compare dialog. I noticed that for Word 2013 and 2016 it is written to registry, but I dont know...

View Article

Alternative algorithm to REPLACE ALL (wdReplaceAll)?

Bear with me please as I have extremely little VB knowledge or experience. I am trying to update an existing module function that takes two arguments: var and varValue. The function simply does a...

View Article

Unable to edit and save Read-Only file using "Microsoft.Office.Interop.Word"

Dear Team,There is a requirement where I need to attach an image in the word document which has been uploaded by user. It is working fine when such document file is not in Read-Only mode. But It is...

View Article


How to modify existing configuration parameters of Word cross-reference...

Hi, I need to add the MERGEFORMAT option to cross reference fields (e.g. links to Tables, Figures, Headings) in which this parameter is missing.Can someone suggest how to implement this action with a...

View Article

Having trouble with Applescript

Hello there,Someone directed me here from:...

View Article

Associating a hot key with my ribbon tab not working

I created a Ribbon using designer. There's a tab Tab1. I added 'a' (without quotatioin) as its KeyTip. If I run add-in, and press alt, that tab is associated with hotkey Y1 and not a. How to make...

View Article


How to create a command in VSTO

I created a Ribbon. There's a button. I'd like to associate a hotkey with it. If I go to Word / Options / Cutomize Ribbon / Keyboard shortcuts Customize... / Categories and select my Ribbon Tab, the...

View Article


Content Control Event Handlers does not trigger when document opened from...

I have developed a custom Word Add-In, which subscribes to ContentControl Enter and Exit event handlers. These event handlers work as expected when the document is opened from local system. When the...

View Article

How to display word document in browser window?

We need to display a word document inside the browser as part of our SharePoint application. But when we tried to achieve this, it is always showing a popup with options like Open, Save and Save As....

View Article

microsoft.office.interop.word.document… find to where document is being...

OK, so I've a fairly specific query regarding a Word 2016 addin that is running when a new document is created from a custom content type in SharePoint (2013). When the user creates a new document...

View Article

Word Doc generation using ASP.Net

We are working on ASP.Net (MVC framework) based web application that uses MS Word document template and generate MS word document as final report. We are using MS office introp DLL to create, read and...

View Article


Hyperlink from within a Word Document to a specific page within a PDF document.

I was hoping that someone would be able to assist me.  I would like to create a hyperlink (used as a citation) on my Word document that opens directly to a specified page within a PDF document...

View Article

Word Add-in is loading blank

Hello all,We are developing custom add-in for our word users. Recently some of our user migrated from Office 2013 to Office 2016. Those who migrated from 2013 to 2016 are getting blank add-in while...

View Article


VBA Code to find degree symbol in Unicode Hex

Hi,I am trying to develop a macro to find and replace some characters in word.I have the below code which can work to achieve it. However the ChrW for degree in Unicode Hex is "00B0" and the VBA editor...

View Article

ExportAsFixedFormat results in odd File is Read-Only error

This appears to be the same question that was on this very old thread (which wasn't resolved there):...

View Article


Word 2013 Macro to insert a page break after every other text "Date"

Good morning,I am trying to write a macro to insert a page break after every other word it sees called "Date" Each section has 2 texts "Date" and i need the macro to insert after the 1st time it...

View Article

sendkeys not working in some modules

I need to cut and paste equations in to active document.     Sub sample() Dim eqns As omath Dim objData As New MSForms.dataobject Dim strText As String For Each eqns In ActiveDocument.OMaths...

View Article

Run macro on word when Trust settings is disabled

Hello,how can we programmtically run macro when trust settings is disabled in client machines? Currently we are getting this exception : "programmatic access to visual basic project is not trusted".Is...

View Article
Browsing all 4350 articles
Browse latest View live


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