OpenDataSource wdOpenFormatText UTF8 file
I have been using OpenDataSource via COM for sometime with ANSI csv filesI set the format to wdOpenFormatText and it opens fineHowever if I present it with a UTF-8 CSV file with a BOM marker at the...
View ArticleCourier New - Bold
We use Courier New for certain draft documents. And certain parts of the document must be BOLD.One of the users complained that all of the text is not bold, in particular :;.,If you paste thisThis...
View ArticleRemove item from undo list
can I avoid adding item to undo list. or remove item from undo listI need avoid user undoing the changes to document made from my vba or VSTO code dddd
View ArticleInsert Image at user selected cursor or current position
Dear All, I am using the following code where i am trying to insert an image at current position or where event the user cursor is currently there but always it insert it on top of the word document...
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 ArticleAccessing 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 Article