Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

how do I access the ms project 2010 classes from visual Studio?

$
0
0

I have installed Visual Studio 2012 and am trying to convert VB Macros to VB is studio.

In the VB Macro, I access the resource count like this:

    l_Number_Of_Resources = ActiveProject.Resources.Count

Is studio, I was trying to do it like this, but it throws an error:

    l_Number_Of_Resources = Application.Resources.Count

There are other set of code such as this that will also probably cause problems:

    For Each asg In Application.Resources(c_res).assignments

How do I access the data structures of the current open Project in VB in visual Studio?

Thanks.

Each asg In Application.Resources(c_res).Assignments


Viewing all articles
Browse latest Browse all 5347

Trending Articles