How do I test in VB if a task is visible?

G

gcwynne

Im trying to write a VB macro that applies various Group and/or Filter
settings to project tasks (MS Project 2000). I would then like to check
various others properties on those tasks that remain visible (i.e. meet the
filter conditions) but there does not appear to be a "visible" or "hidden"
property for tasks. How do i check this?
 
J

Jan De Messemaeker

Hi,

You could use the following sequence:

Selectall
ItIsThere=false
For each anytask in activeselection.tasks
if (this is the task you have in mind) then
itisthere=true
exit for
endif
next anytask

Hope this helps,
 
M

Mike Glen

Hi gcwynne ,

Next time, try posting on the developer newsgroup. Please see FAQ Item: 24.
Project Newsgroups. FAQs, companion products and other useful Project
information can be seen at this web address:
http://project.mvps.org/faqs.htm

Mike Glen
Project MVP
 

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