Thanks for your help. The other complication I've run across is the step I was hoping to do in the If statement.

i want to map drives by IP, but I've discovered that by looking at the manual that the "use" doesn't do this.

I've tried a search, but it didn't clear up the issue.

Any UDF's that I could use for this?

Thanks