Results 1 to 2 of 2

Thread: Leaving a subprocedure

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Location
    Belfast
    Posts
    109

    Leaving a subprocedure

    I'm trying to get my code leave the procedure. Pleasse can someone help me replace the line 'exit the sequence' with a proper vb command. Thanks


    If cboProduct.Text = "" Then
    MsgBox("You need to select a product")
    'exit the sequence
    End If

  2. #2
    Addicted Member Sully's Avatar
    Join Date
    Nov 2002
    Location
    Lost in the far recesses of one's own mind.
    Posts
    165
    exit sub

    JS
    Disclaimer:

    * The preceding message was in no means meant to be critical, mean spirited, insincere, or facetious.

    Disclaimer for disclaimer:

    The preceding disclaimer may in fact be facetious in nature.

    Thanks,
    Jim

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