Nov 19, 2014 - These are proving very disruptive and I really hope Microsoft can do something to fix them: 1. In previous versions of Office, one could work on high contrast and see. I prepared a macro-containing document in Office 2011 on the Mac. Develop the assignment algorithm, the VBA code can do the rest.
I am new to VBA and I am trying to make a module in Access that will pull the data from the plain text content controls in a Word document. My code is making the connection to the document but is not grabbing the data from the content controls. Form Fields are named according to their bookmarks. By default, text input Form Fields are named 'Text1', 'Text2', etc. They can be renamed via Properties on their right-click context pop-up menus. Because they are bookmarks, the names are unique throughout the document and can be individually addressed in the FormFields collection by name. If you have done this so that the names are the same as those used in your code, then it should work.
If it doesn't then it would help to post the document. However, you say that you are using Content Controls. These are not Form Fields. They do not have a name property and their is no Result method. To extract the text from a Content Control, you need to use the Range property: rst.Fields('FullName') = doc.ContentControls(1).Range.Text Select all Content controls have Tag and Title properties which can be used to distinguish between them, but their uniqueness is not enforced.
However you can get a ContentsControls collection using either the Tag or the Title. Set CCs = doc.SelectContentControlsByTitle('YourName') rst.Fields('FullName') = CCs(1).Range.Text Select all. Thank you for the responses.