Hey Yamikp, Usually when I get these errors it's because I have missed a Else, End If or a End Sub line. If it were me? I'd change just a couple of things and make it work old school...
If InStr(strGroups , ADFS1_GROUP) Then
strDrive = "G:"
strShare = "\\xxx-xxx-ADFS-1\GROUP"
MapDrive
Else
strDrive = "H:"
strShare =...
Leave a comment: