Skip to content

Instantly share code, notes, and snippets.

@bervukas
Created February 28, 2016 07:27
Embed
What would you like to do?
A better approach to using Magic Values in VBA
Private Const PASSWORD_LENGTH = 7
Sub SetPassword(password As String)
If (Len(password) > PASSWORD_LENGTH) Then
' Display error
End If
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment