title: How to write my own filter for predecessors in VBA for MS Project?
body: <p>I am currently setting up a GAANT chart to determine the runtime and dependencies of a huge project. </p>
  
  <p>There are a little over 600 tasks. They are dependent on each other, but unfortunately not in a linear and clustered way. </p>
  
  <p>I can colourise the predecessors and successors of one task. But, because there are other tasks in between, I need to scroll a lot to get to the next connected task. </p>
  
  <p>I want to write a filter in VBA, so that it will show me ONLY the connected Predecessors and Successors of the selected task. </p>
  
  <p>So far I do not even know how to write a simple filter, because the online documentation is very poor, when it comes to filters. </p>
  
  <p>Applying a normal filter does not work, because it will give me only the direct predecessors and successors. </p>
  
  <p>I expect the predecessors of the predecessor, and so on. </p>
  
  <p>I hope someone can help me.</p>