Define MailMerge Rules using VBA?
Hello, I am very new to VBA and am trying to set up a mailmerge in order to pull data from an excel doc and create shipping labels with the data in word. In my spreadhseet, there is a "Print Label"...
View ArticleSearching fonts in VBA in Word
Part of an upgrade from a Word 2003 template to 2010 is a macro that does a bunch of search and replaces for certain fonts and characters. I discovered that sometimes the characters weren't getting...
View ArticleOpen Cross-Reference PoPup
I would like to create a macro that opens the insert > cross-reference popup and changes the 'reference type' and 'insert reference to' and then the macros ends so the user can select the...
View ArticleHow to Insert HTML tags for plain Text in WORD document using WORD Macros
I want to create a macro for HTML tagging,I need the following steps are done by the macro in WORDInitial Step : Open a Word Document and Run my "HTML Tagging macro"Macro Step1: Browse to import a text...
View Articledocument.Shapes.AddTextbox ignores anchor (Word 2013)
Hi everyoneI've been using the following code (c#; interop via NetOffice) for quite a while, it worked perfectly in Word 2007/2010 (with some position adaption for 2010).Shape textBox =...
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 ArticleProblem with selecting entire Footnote Reference Number
Help! I am using VSTO in Visual Studio 2010 to select each footnote reference number in a Word document. The problem is, if the number has more than one digit,only the last digit is selected. Does...
View ArticleSEARCH FOR CREATEDATE AND UPDATE TO DATE FIELD THEN TURN INTO TEXT
I would like to write a macro to search for all createdate fields {CREATEDATE \@"d MMMM yyyy"} in a word 2010 document then UPDATE this to today's date {DATE \@"d MMMM yyyy"} as text. I would...
View ArticleConvert vector pictures to raster format
I'd like to rasterize large amount of vector pictures in Word 2010.I made the following macro with which I have some problem.In the first loop, it converts the shape to EMF, then in the second loop,...
View ArticleApplications for Windows RT Tablets (Word Add-In)
Hello. The company I work for (Windward Studios) creates an IExtensibility COM AddIn written in C# for Office that we want to get running on a windows RT tablet. When trying to install our add-in from...
View ArticleAccessing the new Insert control for tables in Word 2013
MS Word 2013 adds a nifty new "insert control" to add rows or columns to a table (see blogs.office.com/b/microsoft-word/archive/2012/08/30/working-with-tables-in-the-new-word.aspx). I have a Word 2010...
View ArticleHow to print Header and footer section values with XML tags
Hi all,I have a problem with printing the values in header and footer section. Actually i have create a Word Document Template because it need to print repeated data based on XML tag , for this i have...
View ArticleAdjusting line weight for all shapes in a document
I have a word document in which are many shapes. These shapes contain several thick lines (usually width 0/0.05pt/0.1pt).These thick lines cause problem so I'd like to set them to at least 0,25.It is...
View ArticleAlternative for Microsoft.Office.Interop.Word [other then openxml]
I am using following code to saving a upload word document as htmlI am using Asp.net to upload the documentprivate static void WordInterOpMethod(string htmlFilename, string strFilename, string...
View ArticleVSTO C# Tables
I have two word documents. Word document "A" contains a table with 5 columns and several rows. The cells within may or may not contain in line images. Word document "B" contains the same table...
View ArticleHow to add text vertically into a Word margin with C# (using namespace:...
I need to add text vertically in a word document outside the margins. How can I do this with Microsoft.Office.Interop.Word and C#?Leonard Swarczinski Software Developer Postal Center International
View ArticleEXPLANATION OF MACRO
I am working on a macro that has been created by someone else, it works as I have made some modification, however, I don't fully understand it, just wonder any macro experts can assist me with some...
View ArticleProblem with Office Style Windows in Office 2007
Hi, I am facing a problem. I have office 2007. installed in my system. I have a paragraph style applied to one paragraph. And the Styles windows shows it selected but if I apply bold to any of the...
View ArticleIndexes in Microsoft Office Word vba
I am working a on a macro, and I need to convert an index for a word range to an index of a character range. Is there an easy way of getting the number of characters that a word is from the beginning...
View ArticleRemove empty lines at the top of every page
Hi, I would like to perform the actions described below, in a Word document. Those two procedures must be performed for the same page, before moving on to the next page. Example: Go to page 1: Remove...
View Article