Change view in ms project via code RRS feed

  • Question

  • Hello,

    I'm creating an addin for MS Project and I need a button on it that will switch to Resource Sheet view. I used Application.ViewApply(ActiveProject.ViewList[13]) and everything was fine, but if I click on the button again, then "Resource Name Form" will be #13 in the list. I guess it's not good idea to check CurrentView, because the name can be different in different languages.

    So how can I handle this?

    Thanks in advance,


    Friday, May 11, 2012 5:47 PM

All replies

  • Hi DBA777777,

    Thanks for posting in the MSDN Forum.

    Would you please clarify your MS Project version for further research?

    Have a good day,


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us

    Monday, May 14, 2012 1:40 AM
  • Hello Tom,

    MS Project 2010


    Monday, May 14, 2012 9:07 AM