SharePoint display SP version number in a word document

Sometimes you need to insert the Version number of a word document stored in a SharePoint library in the content area of the word document. As Björn wrote, you can use code to achieve it. But i would like to share another approach which does not need coding. The trick is to use the label function in SharePoint library settings.

Well, let’s start by the beginning.  At first we have to go into the document library settings and click on the “information management policy setting”.

VersionNo_1

In this area we have to select the content type by click on the name

VersionNo_2

And now we can do the magic. We activate the checkbox for Labels and i would recommend to prevent changes to labels after they are added.

In the label format you have to add the property of the SharePoint document for the version string which is

{_UIVersionString}

VersionNo_3

It’s also possible to user other properties. But let’s go on, by adding it to word.

Click ok and the we have to go the word template in the library. Open the template for editing. In word you can then use the tab Insert and choose “Document property” from Quickparts menu.

VersionNo_4

Now it should have a property called “Label” which you can insert in the word document. After saving the template and open a new word document of it, it should display the version string of your document.

VersionNo_5

VersionNo_6

Pretty cool.

 

 

 

 

 

The article or information provided here represents completely my own personal view & thought. It is recommended to test the content or scripts of the site in the lab, before making use in the production environment & use it completely at your own risk. The articles, scripts, suggestions or tricks published on the site are provided AS-IS with no warranties or guarantees and confers no rights.

Karsten Pohnke About Karsten Pohnke
He is Consultant for SharePoint Solutions for collaboration, communication and business processes. He provides his customers applications based on standard features as well as development or combining the power of several microsoft tools like Dynamics CRM. In his free time he tries to collect tipps and worthy experience in this blog.

7 comments on “SharePoint display SP version number in a word document

  1. Now that feature has been deprecated in Sharepoint 2013 is there another method to insert version number into a document? I read that Microsoft removed this as it did not meet records management user requirements…those users must be from planet Mars

  2. Niels de Boer

    I have the same issue here. Is there a way to achieve this?

  3. for me this works with sharepoint 2013+office 2013:
    field code:
    {DOCPROPERTY RevisionNumber }

  4. Pingback: Insert SharePoint version number in a word document - busitec Blog

Submit comment

Allowed HTML tags: <a href="http://google.com">google</a> <strong>bold</strong> <em>emphasized</em> <code>code</code> <blockquote>
quote
</blockquote>

Please fill in the captcha: * Time limit is exhausted. Please reload CAPTCHA.