Catching new filename after save as

J

Jonathan Fong

Usually the save as will fall into BeforeSave and ProjectAfterSave event
after the file is saved. From there, I can retrieve the new file name.
However, when I create a new project and close the project, the MSProject
will ask to save or not, next I click yes and give a new name. Only
BeforeSave will rise up. The problem with BeforeSave is only contains the
old name. Is there anyway to get the new name from external program in this
scenario?



Cheers,

Jonathan
 
R

Rod Gill

Hi,

Use the FileDialog object to request the file name from the user then use
that name to save the project yourself.

--
For VBA posts, please use the public.project.developer group.
For any version of Project use public.project
For any version of Project Server use public. project.server

Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.project-systems.co.nz/
Email rodg AT project-systems DOT co DOT nz
 
J

Jonathan Fong

Hi Rod,

Where should I call the FileDialog object ? BeforeClose or BeforeSave?
In BeforeClose, how can I stop the original SaveDialog if user answer no
save in the custome SaveDialog because MSProject had detected the data
modification? Seem it will be too late to do in the BeforeSave.

Thanks,
Jonathan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top