Code that runs both on MSP2003 and MSP2010

Home Forums Microsoft Project Discussion Forum Code that runs both on MSP2003 and MSP2010

Viewing 1 reply thread
  • Author
    • #5015
      Avatar photoCommunity

      We are in the midst of a migration, so I have half of my users on MSP2003, and half on 2010. I have some VBA code which must run on both versions. Now I have problems with the TimelineViewToggle command, which I must use for the MSP2010 users, otherwise they cannot use a split view command (MSP2010 considers a view with timeline displayed a split view, so you first have to execute the TimelineViewToggle command, before you can split the view and display e.g. the Task Form in the bottom pane).

      However, If I use that code in MSP2003 I get an error message, because that command is not known in MSP2003.
      How can I write code which simply ignores this statement in MSP2003?
    • #3923
      Avatar photoCommunity
      If Application.Version=14 then
         ‘Project 2010 Timeline code
      Elnd If
Viewing 1 reply thread
  • You must be logged in to reply to this topic.