How to set active document editable when userform is opened?
I have created userform, If I open userform,am unable to edit in the active document with the userform opened. For example: If we press ctrl+f,the find functionality dialog box will be displayed,by...
View ArticleHow to save and restore different text styles (Quick Style) inside one...
I have some text that contains, say 10 words, and several words in this text have specific styles, e.g. one word is bold and another one is red.How can I save these styles so that after part of the...
View ArticleVSTO - Word 2007 addin with Ribbon not displaying
I am using VS 2010 and have developed an addin for Word 2007. I originally developed for Word 2010, and everything worked. I then needed to develop specifically for Word 2007 through Word 2013 so I...
View ArticleLate Binding Word Automation creates a document with an unresponsive Ribbon
I have a .NET ActiveX COM object that is calling Word and adding a template for processing. This template will get some data and then add in a layout template which will create the final document with...
View ArticleMerge Multiple Word Files with File Names by VBA
Hello :I want macro would let me choose a folder to select.All files in the folder will be selected and merged into one Doc file, in the active doc.I also want, the FILE NAME to be on the contents of...
View ArticleProgrammatically created wordfile giving error while closing
HI,I am developing an application in which i have to write a letter in word after processing.After writting letter whose format was pre written.When i am going to close that file it is asking "Do you...
View ArticleHow to find the near Bookmark?
Hi All,I am doing a VSTO Project. Supposed that I have already insert a lot of Bookmarks in my word document via C# code. Like the picture below,The yellow line is represented the Bookmark. Now I want...
View ArticleHow to hide ribbon or control user action in microsoft word 2010 vb.net
When user clicks on my programmatically written add-in for Microsoft Word 2010 code does series of actions on the content of document. It takes quite a while for the task to be completed if the...
View ArticleVBA code which creates a Word ribbon tab listing recent documents
Has anyone seen any VBA code which creates a Word ribbon tab listing recent documents? I find the recent document list at the bottom of Backstage under the File tab is too far away and the one in the...
View ArticleGet Command Failed Error 0x800A1066 when using Selection.Paste() to paste a...
Hi, everybodyI have an add-in built by C# for MS Word 2010.When I try to paste an image form clipboard into a range using Microsoft.Office.Interop.Word.Selection.Paste() after setting the image to...
View ArticleVB.net Microsoft Word 2010 32Bit Addin not Loading on Client Machine
I developed an Microsoft Word 2010 Addin .Net 4 in Visual Studio 2010. Developed an installer and tested the Addin on different machines.The problem is when i install the Addin on any machine which...
View ArticleBolding Address in Labels w/ Word Automation?
I have a unique problem. Right now, I'm creating a single label on an label sheet usingActiveDoc = oWord.Application.MailingLabel.CreateNewDocumentByID(labelID:=AveryType)and then adding 3 paragrpahs...
View ArticleHow to Install Microsoft Word Add-in in Windows Svr 2008 R2 64bit with Word...
I developed Microsoft Word Add-In for 32 bit systems which is working fine. Now i want to install the same on Win Svr 2008 R2 Enterprise 64 bit with 32 bit Microsoft Word installed. What changes do i...
View ArticleColors not matching
To perform an operation, I need to confirm that the correct color has been used for certain words.To test, I have inserted a block of text and colored it 'blue'. (The 'hover over' name of the color...
View ArticleWord 2013 VBA Runtime Error 4198
I havea macro thataddsrows in a table(over 500rows)aftera bit ofinsertionsreturnsthe errorruntime error4198.my codeis as follows:....For i = 1 To Wx Selection.PasteAppendTable Next...
View ArticleIs there a way to move an arrow connector in Microsoft Word without the line...
I am trying to create an Entity Relationship Diagram in Microsoft Word and in doing so I am trying to connect the foreign keys to what they reference. When I do so, I try to move the one end of my...
View ArticleUnlock Form in VBA code - MS Word 2010
I used the wonderful code at the link below to spell check form fields and it works great. I did need the code to be in the document that is being opened (not a template) so I used the Custom UI...
View ArticleHow to remove macros from word 2010 documents?
I have some .dot files that I'm using as templates for a while.They used to have Macros to do some stuff and I started to replace those macros with Add-ins.What happens is that the macro menus are...
View ArticlePicture cropped while extracting from Word 2010 Document
Hi,I have a document and 2 pictures within it, I am extracting those pictures using Office interope and below code. However these kind of picture are cropped after I extract them. Only from both left...
View ArticleVSTO - Word 2007 addin Watermark not working correctly.
I have developed an addin that works perfectly in Word 2010. However, when using with 2007 it does not.The addin adds a watermark image to the first page of the document. When the button is clicked...
View Article