Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. Private Function KontrolaPSC()
  2. Dim psc As String
  3.  
  4. psc = Sheets("Pomocný").Range("H2").Value
  5. If psc = "0" Then
  6. MsgBox "PSČ musí být vyplněno!"
  7. KontrolaPSC = False
  8. Else
  9. If IsNumeric(psc) Then
  10. If Len(psc) = 5 Then
  11. KontrolaPSC = True
  12. Else
  13. MsgBox "PSČ musí mít 5 znaků!"
  14. KontrolaPSC = False
  15. End If
  16. Else
  17. MsgBox "Nezadali jste číslo!"
  18. KontrolaCislaPopisneho = False
  19. End If
  20. End If
  21. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement