Rod said:
I'm assuming you mean using VBA as this is a programming news group. In
Project Professional select Tools, Macro, Record new Macro
Select This project in the where to record option then OK
Open a project manually, then
Tools, Macro, Stop Recording
look at the recorded macro for your answer.
Well, I was thinking on C# (or even a script language such as VBScript)
more than VBA, since I'm trying to open it from outside Project
Professional. My apologies, I should have been clearer).
I did what you suggested though, and copied the result. I tried FileOpen
with the project's name parameter as "<>\MyProject.mpp", as the macro
suggested. Yet it throwed me an error: "Project is unable to open the
selected project. You selected a project saved to Project Server while
you are offline, or you selected an offline project that has been
deleted*. To open projects saved to Project Server, close and then
reopen Project. In the Project server Accounts dialog box, click the
correct account, and then click Connect to establish a connection with
the Project Server".
* I checked and I'm online and the project hasn't been deleted.
I'm stucked here, can't found anything related.
Thanks again.
Regards,
Fernando.