Project.CheckIn Method using VBA

H

HMS Software

Hello all,

I am trying to use the Project.CheckIn (MS help text below) method in my
application, but no matter how I format the command with or without
parameters, I always get the following error " an unexpected error occurred
with the method".

Has anyone used this method successfully? I am basing my syntax on the
following VBA help in MS Project when you search for "Checkin"

Thanks
Steve

----------------------------------------------
Project Developer Reference
Project.CheckIn Method
Returns the working copy of the project from a local computer to the Windows
SharePoint Services server, and sets the local project to read-only so that
it cannot be edited locally. Calling this method will also close the project.
Syntax

expression.CheckIn(SaveChanges, Comment, MakePublic)

expression A variable that represents a Project object.

Parameters

Name Required/Optional Data Type Description
SaveChanges Optional Boolean True saves changes and checks in the document.
False returns the document to a checked-in status without saving revisions.
Comment Optional Variant .. Allows the user to enter check-in comments for
the revision of the project being checked in (applies only if SaveChanges
equals True).
MakePublic Optional Boolean True allows the user to publish the project
after it has been checked in. This submits the project for the approval
process, which can eventually result in a version of the project being
published to users with read-only rights to the project (applies only if
SaveChanges equals True).

© 2006 Microsoft Corporation. All rights reserved.



See Also
Project Object
Project Object Members
 
R

Rod Gill

I'm assuming you have Project Professional 2007 and Project Server 2007.
Have you upgraded to SP1? If not I recommend you do then let us know if you
still have the problem.

--

Rod Gill
Microsoft MVP for Project

Author of the only book on Project VBA, see:
http://www.projectvbabook.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