W
wpshop
I am trying to pull the following out "wkaupert" of this string. Can you
split by multiple delimiters? UserName = "CN=Wanita Kaupert/O=ABCD"
Below is the part of the code that refers to my dilemma. So far I have been
able to get to wkaupert/O. I know the Right reference is wrong but I can't
think of how to fix this and my brain is now fried.
UserName = Session.UserName
WordArray = Split(UserName, "=", -1, vbBinaryCompare)
MailDbName = Left$(WordArray(1), 1) & Right$(UserName, (Len(UserName) -
InStr(1, UserName, " "))) & ".nsf"
split by multiple delimiters? UserName = "CN=Wanita Kaupert/O=ABCD"
Below is the part of the code that refers to my dilemma. So far I have been
able to get to wkaupert/O. I know the Right reference is wrong but I can't
think of how to fix this and my brain is now fried.
UserName = Session.UserName
WordArray = Split(UserName, "=", -1, vbBinaryCompare)
MailDbName = Left$(WordArray(1), 1) & Right$(UserName, (Len(UserName) -
InStr(1, UserName, " "))) & ".nsf"