Connect to a project server when opening MS Project

前端 未结 2 1273
南旧
南旧 2020-12-12 03:23

I have a vbscript that checks to see if MS Project is open. If it\'s already open it runs a macro if not it should open Project then run the macro. It works fine if Project

2条回答
  •  Happy的楠姐
    2020-12-12 03:34

    In place of pjApp.macro try:

    pjApp.Appllication.Run "testsave"
    

    I know that it is weird that the .macro version works for the code above it; however, it is still worth a shot. This code should also work for both places where you are using the .macro method.

提交回复
热议问题