Automation question

M

Mabush

how can I open a project from project server in MS porject
pro. I couldn't fimd anyway to log in to the MS project
professional using the MS project Object Model.
please help.
regards,
mabush
 
R

Rod Gill

Hi,

Try:
x = Shell("Winproj.exe /S http://servername/projectserver /U username
/P password", vbHide)
DoEvents 'this gives Project time to logon
'Create a project application:
Set objMSProject = CreateObject("MSProject.Application")
DoEvents

If you omit the /U (username) and /P (password) parameters, then a Windows
Logon will be attempted.

--
For VBA posts, please use the public.project.developer group.
For any version of Project use public.project
For any version of Project Server use public. project.server

Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.projectlearning.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top