Remembering the original gantt view / zoom

A

Andy Lenik

Project 2000 VBA

As part of a procedure I have, if there are any delayed tasks I filter
the view by delayed tasks and zoom the gantt to the 'entire
project'...

FilterApply Name:="DELAY"
ZoomTimescale Entire:=True

.... before taking a snapshot of that view. When the procedure is over
the user will be looking at the unfiltered task list again, but the
zoom will have changed.

How do I 'remember' what the view was looking at and set it back to
it?

Thanks in advance, Andy.
 
J

John

Andy,
I use this all the time. Before you do anything, save the current view:
oldview = ActiveProject.CurrentView

At the end of your procedure, just use,
ViewApply Name:=oldview

John
 
A

Andy Lenik

John said:
Andy,
I use this all the time. Before you do anything, save the current view:
oldview = ActiveProject.CurrentView

At the end of your procedure, just use,
ViewApply Name:=oldview

John

John, thanks. Now isn't that the sort of answer we all want? Nice,
simple, and effective.

Cheers! Andy.
 

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