Private Sub Form_Click()Dim i As IntegerDim aa, bb As IntegerFor i = 1000 To 9999 aa = i Mod 100 bb = Int(i / 100) If i = (aa + bb) * (aa + bb) Then Print i End IfNextEnd Sub