WSHNetwork.MapNetworkDrive "J:", "\\server\users\" & UserString
Some users do not have this directory setup so I do nto want to map it. I have tried an idea to use an "If" statement but I am not getting the code correct:
If WSHNetwork.MapNetworkDrive "J:", "\\\server\users\" & UserString = False Then
WSHNetwork.RemoveNetworkDrive "J:"
Else WSHNetwork.MapNetworkDrive "J:", "\\server\users\" & UserString
End if
I am new to VBA so bear with me if this is too simple.
This post has been edited by philm105: 27 March 2009 - 12:22 PM

Help

Back to top








