About Miguel Zapico Expertise I can answer question about how to use scripts to consolidate data, connect different systems and automate tasks. I have no experience on using VBScript on web programming.
Experience I have been using VBScript and Windows Scripting Host as my swiss tool for the last 6 years.
Organizations New York PC users group (NYPC)
Independant Computer Consultants Association (ICCA)
Education/Credentials Microsoft MCSE in Windows NT
Expert: Miguel Zapico Date: 6/16/2006 Subject: MS projects open file
Question Hello Miguel,
my question is, how can i open a file in msproject without getting promted with "file" should be opened as read-only ... ?
I've tried the following code:
Set pj = CreateObject("MSProject.Project")
pj.Application.FileOpen "O:Clinical DevelopmentHuMax-CD20Hx-CD20-402MS Project Plan\cpm402.mpp", true,,,,,,,,,,,,,true
but still i get promted.
BR
Jan
Answer Sorry, I have tried your code and it works perfectly in my computer. You have the true in the right place to avoid the prompt.
The only other thing I can think on is using the application object instead, something like:
Set myProject = CreateObject("MSProject.Application")
pj = myProject.FileOpen("c:\temp\test.mpp", True, , , , , , , , , , , , , True)
This also worked in my computer, but as the first one did, this is no warranty of anything.