AllExperts > Experts 
Search      

VB Script

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More VB Script Answers
Question Library

Ask a question about VB Script
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
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

 
   

You are here:  Experts > Computing/Technology > Basic > VB Script > MS projects open file

Topic: VB Script



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.

Best,
Miguel.

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.