How to open a writable MS project file in Late Binding?

L

luvgreen

Why I can't open the file writable with this line of code-
appProj.FileOpen sFile, ReadOnly:=False

I am using late binding to avoid multiple versions of project problem,
however, if I checked on the project object library in reference, with the
same line of code above I can open a writable file. How can I open a writable
file with late binding?

Thanks.
 
R

Rod Gill

Hi,

You use the same code. Your fileopen code won't compile though. If you have
one parameter name you must use names for all parameters. Here you need to
delete readonl:= or add FileName:= (I think) in front of the sFile.

--
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.project-systems.co.nz/
Email rodg AT project-systems DOT co DOT nz
 

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