View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
voda voda is offline
external usenet poster
 
Posts: 7
Default why the code make the error "Overflow"?

Sub MyByte()
Dim b1 As Byte, b2 As Byte, i As Long
For b1 = 1 To 200
For b2 = 1 To 200
i = b1 + b2
Next
Next
End Sub
Thanks and regards.
voda