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/
 
Top