Solved

VB Automation to Microsoft Project Server

Posted on 2006-10-19
9
203 Views
Last Modified: 2013-11-15
We have code that can access mpp files via the Project API.  Now we would like to do this with projects stored on Microsoft Project Server but don’t know how to establish the connection. Can you explain how and/or provide a reference to do this?
0
Comment
Question by:ErnestForman
  • 4
  • 3
9 Comments
 
LVL 10

Expert Comment

by:winzig
ID: 17769677
there are followin 2 methods:
1) Project Data services - Soap interface you can create new project , create new task , buil team prom enterprise , modify project properties but you can't modify existing tasks.
2) You can use Project Proffesional to connect to Project server and when you open the file you will be able work with it using Project Pro Objects
0
 

Author Comment

by:ErnestForman
ID: 17772944
I think you are close to the answer I'm looking for. I'd like to do 2) above but don't know how to specify the ADO connection string to Project Server to connect to the desired project. Can you give an example?
0
 
LVL 10

Expert Comment

by:winzig
ID: 17776721
Sub ttt()
Shell "C:\Program Files\Microsoft Office\OFFICE11\winproj.exe /s http://w2003project/ProjectServer/"

Dim oApp As MSProject.Application
Set oApp = New MSProject.Application
oApp.Visible = True
oApp.FileOpen Name:="<>\hokus pokus.Published"
End Sub

I don know how to control connectrion state from VBA code so i used  the SHELL command with switch /s
/s - URL
/u user name (for project auth)
/P password (for project auth)
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

Author Comment

by:ErnestForman
ID: 17778065
Can you explain what the shell command is doing? That is, what is the result of doing the shell?
Can you explain what the "<>\hokus pockus.Publsished" is supposed to be?

0
 
LVL 10

Accepted Solution

by:
winzig earned 500 total points
ID: 17780322
the shell comand executes the MSProject application, the result of this code is that MS Project Pro is opened on your computer and is connected to MS Project server.

"<>\hokus pockus.Publsished"  is name of the project on project server, "<>\" means that this project is stored on project server.
0
 

Author Comment

by:ErnestForman
ID: 17783154
I think this is enough for us to give it a try.  Can you give me a reference to where information such as <>\ is explained.

Thanks,
Ernest
0
 
LVL 10

Expert Comment

by:winzig
ID: 17801641
I have no idea :) i found this convention in recorded macro.
0
 
LVL 30

Expert Comment

by:irwinpks
ID: 17972455
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept - winzig

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

irwinpks
EE Cleanup Volunteer
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Re-planning is just as important as planning. MS Project files need to be updated regularly to reflect the current status of the project and to streamline the upcoming tasks. We have seen a lot of issues where project managers have not updated the p…
Article by: x-men
Where used to see Gantt charts for illustrating project timelines, but what if I wanted to visualize passed timed events? Here's how.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question