不可能是bug吧,不能如愿,是这句代码的原因
IF _UserGroup <> "生产" And _UserGroup <> "开发" Then
你msgbox一下_UserGroup看看,注意可能有空格的的情况。