Results 1 to 11 of 11

Thread: [RESOLVED] InputBox ... a little prob

Hybrid View

  1. #1
    Fanatic Member amrita's Avatar
    Join Date
    Jan 2007
    Location
    Orissa,India
    Posts
    888

    Smile Re: InputBox ... a little prob

    try this in OK button click
    Code:
    Dim I As Integer, War As String, Sum As Double
    intNext = Text2.Text
        
        For I = 1 To intNext
    Again:
            War = InputBox("Added   " & I & "   value", "Adding sections")
            If War = "" And Sum <= 0 Then Exit Sub
            If War = Cancel Then
                If MsgBox("You have incomplete value or you want to break?", _
                 vbYesNo + vbQuestion, "Question") = vbYes Then
                              Exit Sub
               Else
                 GoTo Again
               End If
            
            End If
            
            If IsNumeric(War) = False Then
                MsgBox "Enter with correct an value", vbCritical
                GoTo Again
            End If
           Sum = Sum + CDbl(War)
        Next
        Text1.Text = CStr(Sum)

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Location
    in Poland
    Posts
    390

    Re: InputBox ... a little prob

    Hi

    Thanks, but this does not work still, someone knows how to make this
    I know, I know, my English is bad, sorry .....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width