Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-24-2018, 03:52 AM
EvaMads EvaMads is offline Get value from Content control from SharePoint document Windows 10 Get value from Content control from SharePoint document Office 2016
Novice
Get value from Content control from SharePoint document
 
Join Date: Sep 2018
Location: Copenhagen
Posts: 5
EvaMads is on a distinguished road
Default Get value from Content control from SharePoint document

I have a Word-document which is created in SharePoint. In VBA I get the value from various Content Controls like this:



aProjName = ActiveDocument.ContentTypeProperties("Project name").Value

No problem – I works like a dream.

With the XML Mapping Pane on the Developer-tab, I can see the Content Controls are in
http://schemas.microsoft.com/office/...ata/properties


The problem is to get the value of a Content Control from
http://schemas.microsoft.com/office/...ta/ContentType

I can right-click on the name and insert the content control in the document, but I cannot figure out how to get the value with VBA. Can anyone help?
Attached Images
File Type: gif Custom XML mapping.gif (7.1 KB, 38 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Content Control content deleted when re-uploading to SharePoint Peterson Word 5 06-27-2018 08:13 PM
Combo Box Content Control: How to update the list throughout the whole document? deepak_fer Word 9 03-18-2018 04:10 AM
Gallery Content control and protect document DarrenOakey Word 2 08-13-2015 04:56 AM
How to protect all parts of a document not in a content control? XmisterIS Word 2 05-20-2014 04:59 AM
Get value from Content control from SharePoint document Deleting a table from a content control -- preserving the content control BrainSlugs83 Word Tables 8 11-14-2013 03:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft