How to simulate clicking "OK" by using programming code?

M

mr.potato

Hi all,

I've got some problem when I tried to change the value of author and company
in project's properties by using programming code. I find that I've to open
the properties dialog box and click "OK" for saving the changes what I've
made in the background, or else it the changes would be gone after I close
the project file... Attached below is the coding.


With ActiveProject.Application
ProjectSummaryInfo Author:= "Mr.ABC" Company:="DEF Ltd."
ActiveProject.Application.FileProperties
 
M

mr.potato

Hi Jan De Messemaeker,

Thanks for your reply, I've already try SendKeys , but it seems it doesn't
work in this situation......

Does any other solutions for changing Author successfully in properties?

B.Rgds,
mr.potato
 
J

Jan De Messemaeker

Hi,

I should have read the whole post more thoroughly.
Use the BuiltinDocumentPropperties method!
Sorry I didn't help you from the start
 
M

mr.potato

Hi,

Thanks for your kind help~! Actually, I've found this before but the MSDN
Library said the "BuiltInDocumentProperties" is a read only property......

Anyway, it works now, thanks a lot~

B.Rgds,
mr.potato
 

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