IsDevelepor is a separate function with this code:
Function IsDevelepor() As Boolean
Dim UserName As String
IsDevelepor = False
UserName = VBA.Environ("UserName")
Select Case UserName
Case "nasiri1"
IsDeveloper = True
Case Else
IsDeveloper = False
End Select
End Function
Function IsDevelepor() As Boolean
Dim UserName As String
IsDevelepor = False
UserName = VBA.Environ("UserName")
Select Case UserName
Case "nasiri1"
IsDeveloper = True
Case Else
IsDeveloper = False
End Select
End Function