Simple Copy Paste via VBA or ProjectGuide JavaScript

Y

Yashr

Hello:

We have a main template with summary tasks. We also have
templates(subtemplates) which has detail tasks. We are trying to automate
the insertion of subtemplates into the main project.
Currently we do a copy/paste from the subtemplates to the main project.
We are trying to automate this and when the PM selects a subtemplate from a
list, we use the following code:(javascript)

application.FileOpen(..selected subtemplate..)
application.SelectAll;
application.EditCopy;
//activate parent window and paste
application.WindowActivate(parent_proj_window_name);
application.SelectRow;
application.EditPaste;
Everything works/looks good.
The problem is that now, in my main project I loose the 'Undo' capability.
If I do the copy paste manually , the 'Undo' in the parent is still active.
If I do this either via macro or JavaScript(Customizing Project Guide) the
'undo' becomes inactive. This 'undo' feature is important.

Any advice/ideas is really appreciated.
 
J

JackD

Why is the undo important?
You only have one level of undo anyway so it could at best just remove the
last thing you pasted.
If you need real undo you could write a log of the changes and then have
your code remove the inserted projects if they decide against it.
 

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