Skip to content

Instantly share code, notes, and snippets.

@stevesohcot
Created July 27, 2021 14:48
Show Gist options
  • Select an option

  • Save stevesohcot/d5a3498912ca0daa0cdac75fe3d6138c to your computer and use it in GitHub Desktop.

Select an option

Save stevesohcot/d5a3498912ca0daa0cdac75fe3d6138c to your computer and use it in GitHub Desktop.
VBA Null Zero NZ()
Function Nz(value As String) As Double
If IsNull(value) Or (value = "") Then
Nz = 0
Else
Nz = value
End If
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment