How to get html tag from range
Hello,I want to get html tags from range in my word add-in.Example : range have some text like "this is formattedtext".so i want its html tags like below:<span><b>this...
View ArticleApplication.Options.RevisedLinesColor does not work in Word 2013
VBA code:Dim o As Options Set o = Application.Options o.RevisedLinesMark = wdRevisedLinesMarkRightBorder o.RevisedLinesColor = wdRedI would expect that bars on the right indicating changed lines would...
View ArticleCustom ribbon drop down list - how and where to populate
Hi, I am making a custom ribbon in Word and I have done this in the Custom UI Editor tool but I am struggling to add a new drop down list because I want to populate it with values from either a...
View ArticleHow do I extract/export Style names and definitions from a Style Set or...
Micro: I want to see a list of the Style names and their characteristics from a Word template/Style Set. Macro: Other people have defined Style Sets and Templates with a wide variety of formatting....
View ArticleRun-time error 5941
I like to set automatic method and Macro with the following steps:1. Select All text2. Modify all text to Calibri 83. Add paginationPlease find code:Sub ModifyContent1() ModifyContent1 Macro...
View ArticleHow i get all text run(w:r) of paragraph using VSTO(C#).
Hello, How i get all text run(w:r) of paragraph using VSTO(C#). Thanks for all the help. Best regards, Anil.Software Engineer
View ArticleBackground color of the selected item in the Drop-Down List Content Control
Hello Experts,Is it possible to change the background color of the selected item of the Drop-Down List Content Control? The Color requires to be set depending on the value selected.I am trying to...
View ArticleHow can I find the method names of icons actions in the ribbon?
Hi, I would like to call some standard Microsoft Word functions, some of which are items in the Developer ribbon. I've tried recording a macro and pressing F11 to see the VB code generated but no luck....
View ArticleCross-reference Dialog Box Reference List Speed
Hi,I'm having an issue with the speed for the population of the cross-reference dialog box (word 2010 and 2013), reference list.Currently when working with a document I can access the cross-reference...
View ArticleGetting local json file works on sideload with visual studio but not with...
Hello,I'm using a xmlhttprequest to get a local .json file from my app.js . This works fine in a local server, but when i publish it to azure this solution fails.Is it Word blocking it?Is it Azure...
View ArticleRead MS Word document and get HTML formatted string using VSTO C#
Hi all,I am developing VSTO application using c# and need to convert whole document text to HTML formatted text. My need is to get each sentence with HTML string like.Operation: If i write in document...
View ArticleIs there a way to save/restore all Word options?
Hi all;Part 2 of my questions. Is there a way to save all Word options, then restore the saved set later? I'm forcing a ton of Word options to do my behind the scenes SaveAs of a docx file. I'd prefer...
View ArticleCreating/saving a hidden Document from my AddIn
Hi all;I have an AddIn on Word. I need to, with the user not seeing it, open a document and then do a SaveAs on it. (I'm converting it from DOCX to PDF.)What is the best way to do this? What I'm doing,...
View ArticleHow to get the lemma of a word?
Hi,In Word VBA, whether there is a function that can get the lemma of a given word? For example, for the word "tips", the function will return "tip", for the word "repaired", the function will return...
View ArticleSet Numbering Value inserts a (undesired) hidden paragraph with the missing...
I'm using Word 2013. Unlike in previous versions of Word, the Set Numbering Value command inserts a hidden numbered paragraph with the "missing" number. Is there any way to stop Word from inserting...
View ArticleVBA Word - Run Macro on Newly Created Document
Hi friends, I am trying to run a macro on a new target document. Currently the macro copies words found in the document into a new document. I want the macro to continue working on the newly created...
View ArticleVBA Word - Empty Paragraphs Not Deleting
Hi friends, I have been trying to get rid of this problem for the past few hours and I cant understand what the problem is? How do I delete these empty paragraphs, I have tried many macros but they...
View ArticleFinding and copying misspelled word crash MS Word 2010
I am trying to find a list of incorrect words and copy it into a new documents for analysis. This is the code that I found but I couldn't get it to work in a big document. When I reduce the number of...
View ArticleDifferent results when using F8 and F5 in MS Word vba?
Hi, I'm jk. I need to cut text in shape and paste it at the bottom of the page in very large MS Word documents. There are lots of rectangular shapes containing texts in the document. And the average...
View ArticleMS Word 2010 fails to update mail merge fields when document opened via VBA
Interestingly, if you create a mail merge document in Word 2010, and include form fields as well as merge fields, MS Word behaves differently depending on whether you open the document from Word (or...
View Article