Detaching references while leaving specific references

Hi,

I'm considering ways to streamline an internal process using Microstation V8i SS4. 

During the process, we are required to remove all attached drawing references, except specific border ones we're required to use and raster images.  These required border references will always be known and are consistent across the drawings.  Currently we do this manually for every single drawing; however, I'm wondering if there's a way to use VBA or another solution (like Axiom tools) to accomplish this within a batch process.

For example, I have the following references/raster in two drawing files:

Drawing 1 has: RefA.dgn, RefB.dgn, RefC.dwg, RefD.dxf, & imgA.cit

Drawing 2 has: RefZ.dgn, RefE.dwg, RefF.dxf, & imgB.cit

Between the two files, I only want to keep the RefA.dgn & RefZ.dgn and the particular raster file each file has, but detach all other references.

I've been digging into IF, THEN, and ELSE statements usage within VBAs and quite frankly, I'm inexperienced with VBA.  I'm not even sure if VBA allows OR statements either in the event I wish to specify multiple border reference filenames to keep.

So I guess I have a few questions:

1) Is this even possible to do with VBA?

2) Does VBA allow OR statements within IF statements?