Microsoft Project Before Save Event - Microsoft Community


hello

i'm trying create beforesave event in project 2013, have pretty fallen @ first hurdle, great if out.

this code far

private sub project_beforesave(byval pj project, byval saveasui boolean, cancel boolean)

    ans = msgbox("do want save project", vbokcancel)

    if ans = vbcancel cancel = true
    end if

end sub

--------------------------------------------------------------------------------------------------

i see when hit save button

 

thanks !

john,

the error occurs because have convolution of 2 different events, project.beforesave , application.projectbeforesave. first runs @ project level , has 1 parameter, while second @ application level , has 3 parameters. have specified project level event given 3 parameters, compiler confused , raises error.

the project level event relatively easy implement won't think attempting. application level event think trying more complex implement requires creation of class module in addition private sub.

so, trying do, , how involved want get?

john



Office / Project / Windows 8 / Office 2013



Comments

Popular posts from this blog

message deleted by transport agent, event: LED=550 4.3.2 - Microsoft Community

Outlook conversion problem - Microsoft Community

Outlook 2016 - Insert attachment to Meeting Invite You Do Not Own - Microsoft Community