I'm not sure that I understand your question, but VB is a programming language, not a project management program, althought it is possible to write a program to do this; this would not be a simple undertaking. I've written a simple 'critical path' program, years ago using MS Excel, a spreadsheet program. You might be better served by picking up a project management program similar to MS Project.