Step 1: Use the [ code ] tag for code, so you don't lose your indents
Step 2: What in the world are you trying to do here?!
Are you trying to do
If <condition> Then
Do something
ElseIf <condition> Then
Do something
ElseIf <condition> Then
Do Something
End If
???
IF thats the case then you only need ONE end if and its spelled 'ElseIf' as one word.
NOW if you're trying to do a
If <condition> Then dosomething
If <condition Then DoSOmething...
Thats not a good coding practice.
Also your use of an array here is quite confusing

To me I would think you'd only have ONE PIN... not an array of PIN's but please explain what you're trying to do
Can you give some pseudocode of what you're trying to do?
The only way I could interpret your code is that you're trying to do
If realpincode(1) = "0000" Then balance = 100
ElseIf realpincode(2) = "1234" Then balance = 300
ElseIf realpincode(3) = "3020" Then balance = 1000
ElseIf realpincode(4) = "0007" Then balance = 250
ElseIf realpincode(5) = "5678" Then balance = 600
ElseIf realpincode(6) = "9009" Then balance = 700
End If
Welcome to TechIMO