Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 200697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:08:03+00:00 2026-05-11T17:08:03+00:00

Subversion’s keyword feature is great to automatically tag text files with the revision number.

  • 0

Subversion’s “keyword” feature is great to automatically tag text files with the revision number. I’d really like to do a similar thing for Word and/or OpenOffice documents.

I tried this with Word documents, by inserting a “fixed-width” keyword substitution into the “comment” document properties field. But it seemed to still corrupt the document somehow (plus I don’t know what “fixed-width” might mean in the case of multi-byte characters). I also didn’t like this idea because it would not be good for inserting the number in the printable part of the document itself.

What I’m imagining now is a macro that automatically runs on document open, and updates a custom document property. The document could contain doc property reference fields that get updated with the value stored in the doc property.

Has anyone done this, or done anything else to achieve this goal? For either Word or OpenOffice?

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:08:03+00:00Added an answer on May 11, 2026 at 5:08 pm

    First: Embedded Version Numbers – Good or Evil?: I find them evil.

    You should not use technical internal revision number to represent the version of a document.

    “This is the 2.2 revision of my word document” is not the same than “this is revision 1567 of my word document”.

    • The former is an “applicative” revision number, from the point of view of the final client.
    • The latter is a “technical” revision number, from the point of view of a tool.

    Plus, if it modifies the document with the current revision number, it still need to be committed, meaning the stored version would be in a revision number different than the one updated by your macro.
    If not committed, there is always the chance that the document being tagged like that is not exactly the one initially queried from Subversion.


    That being said… on the more general issue of updating Office document properties:

    That thread update word 2003 fields automatically suggests the use of an Office API. Microsoft.Office.Interop does not allow property modification, but the VBA API does allow you to access any CustomProperty you want to set for a given SmartTag.

    This article “To add a smart tag with a custom recognizer to a Word document” gives you an example of a SmartTag custom behavior.

    Smart tags are strings of text that have type information attached to them; when a text string that matches the criteria appears in a document, it is recognized and the user is able to perform actions appropriate for that type of string.

    So one could imagine a SmartTag able to recognize the string “revision for this document”, with the custom behavior being “I will query the right revision number to SVN and display it”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When creating a subversion repo a number of hook template files are dropped into
I know subversion but sometimes I want something simpler like plain old files with
I'm looking adding Subversion's revision number to the name of each .js file we
In Subversion can files in the tags folder be a reference (i.e. like a
I like that Subversion 1.7 now has all the pristines in one place for
My subversion repository has a pre-commit hook that requires all files to have a
With Subversion (SVN) we can view versioned files over HTTP i.e. we can view
How to setup my Subversion so it ignores target files generated by Maven on
Using Subversion, is there a way to merge the changes from one specific revision
I have a Subversion repository that contains the externals and some files to start

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.