Accessing styles from word document
How to get all styles from word document ,that are present in style pane of word document? How to show preview of styles like displayed in style pane?
View ArticleGet the correct position of shape on page.
I have vba AddIn that draw the shape based on the position of the rectangle shape on page.But when the document has more than one section and has header, the position is not correct. It seems the...
View ArticleInterop Word - How to load documents to built-in...
Hello,I cannot figure out how to load original and revised docs to the following built-in dialog.Code C#dynamic dialog = Application.Dialogs[Word.WdWordDialog.wdDialogToolsCompareDocuments];I would...
View ArticleWhere does this background come from?
Hello:I'm adding VBA to a word document I inherited, but how can I get rid of this background, and where does it come from? I'm referring to the gray portion of the attached Word document.Thanks,Rich...
View ArticleNumber rows based on punctuation at end of row
Hi all.I'm working on a project, which I am writing out a LOT of questions. Once I finish, I need to number each question. Presently I am doing this manually. My question is---What would be the vba...
View ArticleRegistry entry to check version of current installed Office?
I need to check if MS Office is currently installed on my machine and which version of Office is installed. What are the registries to check this?Earlier I was relying on below registry entry for...
View ArticleHelp with Macro please
Hi,Im trying to set up a macro that will allow me to insert multiple photographs into a table in word. I would need two columns, one for the automatic numbering of each photo which would be in the row...
View ArticleThe trackrevisions method or property is not available because this command...
Dear all,I developed a Word template with code.The word template contains several Contentcontrols one of which holds each Cc the letter is to be sent to.The letter content is all created...
View ArticleTrying to add Microsoft Word 16.0 Object Library to new VB.Net project
I'm trying to add the "Microsoft Word 16.0 Object Library" reference to my project but when I select the checkbox and click okay I get the response "A reference to 'Microsoft Word 16.0 Object Library'...
View ArticleSystem.InvalidCastException: 'Unable to cast COM object of type...
Hello, I have Office 365 installed on my machine. Particularly MS Word version is 2012. I have created C# project (VS 2019) and referenced microsoft word 16.0 object. It appeared as...
View ArticleMicrosoft Word API
Hello,I have Office 365 installed on my machine. Particularly MS Word version is 2012.I have created C# project (VS 2019) and referenced microsoft word 16.0 object. It appeared as...
View ArticleInserting pages when page count is odd in Word DOCX
I am trying to insert pages in a Word DOCX document when the total page count is an odd number. The requirement is for there to always be an even number of pages in the document to facilitate correct...
View ArticleInterop Word - How to load documents to built-in...
Hello,I cannot figure out how to load original and revised docs to the following built-in dialog.Code C#dynamic dialog = Application.Dialogs[Word.WdWordDialog.wdDialogToolsCompareDocuments];I would...
View ArticleRibbon dropDown populated by selection in first dropDown
I have a Word Template with two dropDowns in the Ribbon. I need the 2nd dropdown to be populated based on the onAction value in the first dropdown. I can’t seem to find a way to force the getItemCount...
View ArticleInterop word - retrieve bullet-point text
Hello everyone, I'm trying to retrieve the bullet-point text in a word. I'm not sure it's possible (I would like to have in 1 String, all the text of point 1, in another all the text of point 2, etc.):...
View ArticleImagelist control produces "Class not registered" error
I am updating some old Word templates that have a treeview and imagelist control on a user form that act as a menu to a suite of over 300 templates.I need to update the node images which are stored on...
View ArticleHow to Find the Exact Position of a Content Control
I have an Access application that creates Word documents. I have used Styles to make subheadings. When a subheading splits a page I programmed the app to add a paragraph at the end of the previous page...
View ArticleMac word file had an error and the contents got deleted, file's become read-only
I have mac catalina, 2019 office. While I was restarting the computer, there was an notif that told me to save the word document before restarting. When I clicked on "save" the notif I got was "A file...
View ArticleHow to print word file without dialog box using interop and C#
Dear teamI am using doc.printOut method but unable to print all pages in a document, but when i give specific page numbers then onlyit does print.what could be the issue ? or do0 i need to use some...
View Articlearray functie
With (in Dutch) {=SOM(ALS(OF(LINKS(E2:E252;1)="-";E2="");"";((B2:B252)*(E2:E252))))}in English (I suppose) {=SUM(IF(OR(LEFT(E2:E252;1)="-";E2="");"";((B2:B252)*(E2:E252))))}I want to get the sum...
View Article