none
[ver2007] VersionName property always "" RRS feed

  • Question

  • Hi

    how I can read (inside a macro) the version (98, 2003, 2007,...) of a file?

    I tried with "VersionName" property but is always "".

    thank you

    Tuesday, March 12, 2013 11:02 AM

Answers

  • Hi Daniele,

    Use

    application.filebuildid

    Or

    application.fileformatid

    They work to perfection and hve a very clear help article.

    Greetings,

    Tuesday, March 12, 2013 12:40 PM
    Moderator

All replies

  • Hi,

    I am sorry, you will need to "translate" it using Application.Version.
    12 -> 2007
    14-> 2010
    15 -> new

    Regards
    Barbara

    Tuesday, March 12, 2013 11:40 AM
    Moderator
  • Hi,

    I am sorry, you will need to "translate" it using Application.Version.
    12 -> 2007
    14-> 2010
    15 -> new

    Regards
    Barbara

    Application version work on - I suppose - on application. But if inside MSProject2007 I open a 2003 file...or a 2010 file ...how can intercept the version of the file?

    thank you

    Tuesday, March 12, 2013 11:46 AM
  • Hi Daniele,

    Use

    application.filebuildid

    Or

    application.fileformatid

    They work to perfection and hve a very clear help article.

    Greetings,

    Tuesday, March 12, 2013 12:40 PM
    Moderator
  • @ Daniele: Sorry, I missed your "a file" initially. Jan's solution works great.

    @Jan: Thanks a lot!!! I went through whole object explorer, but I focused on ActiveProject - wrong in this case.

    Regards
    Barbara

    Tuesday, March 12, 2013 3:10 PM
    Moderator
  • Hi Barbara,

    Years ago I did the same :-) Now I vaguely remembered I needed "file" in the keyword and the object browser did he rest!

    Greetings,

    Tuesday, March 12, 2013 6:15 PM
    Moderator