Howard,

I think theirs some confusion from my first post. I am not sorting by N, E, W. I apologize, I didn't have the exact workstation names until about post 12 and just used those names as an example.

Here's the exact range:

usmlbm74 thru usmlbm88 (gets hostfile1 copied)

usmlbm130 thru usmlbm144 (gets hostfile2 copied)

usmlbm146 thru usmlbm160 (gets hostfile3 copied)

I need to determine if the @WKSTA falls within the above range and copy the appropriate host file to it.

Hence, Sealeopard's example appears to work.
_________________________
Dave Melbourne, FL