简体   繁体   中英

Publish on Project using Excel VBA

I need to publish Project plans from a list.

All the code is done and running.

.Publish Republish:=Null, WssUrl:=Null

'Store timer
dblTimer = Timer
'Pause 5 seconds to allow publish window to appear
Do While dblTimer + 30 > Timer

     DoEvents

Loop
'Enable publish
SendKeys "{ENTER}"

The publish window pops on Project. The VBA stops until I click on publish in the window, which has to be done with the SendKeys.

Is there a way to publish without popping the window, or making VBA run when the window pops?

您需要添加一行,并使用的FileSave方法首先然后发布项目计划enterenter Application.FileSave Application.Publishp真,空

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM