Private Sub Command1_Click()
Dim a%, b%, c%, d%, f%
  For a = 1 To 9
  For b = 0 To 9
  For c = 0 To 9
    d = a ^ 3 + b ^ 3 + c ^ 3
    f = a * 100 + b * 10 + c
    If d = f Then
      Text1.Text = Text1.Text & d & vbCrLf
    End If
  Next c
  Next b
  Next a
End Sub