Elseif requires a boolean to evaluate. Also, the "minimum" property of a progressbar isn't a boolean property. While VB will allow you to use it (as Boolean is derived from Integer in VB), it's bad practice.
If Something Then
'do this
Elseif SomethingDifferent
'do this instead
End If
is how the syntax should look like.