Results 1 to 5 of 5

Will I run into any problem by exiting out of an IF...Then statement?

Threaded View

  1. #1
    Forum Contributor
    Join Date
    05-02-2013
    Location
    Indiana
    MS-Off Ver
    Microsoft 365 (Subscription)
    Posts
    192

    Will I run into any problem by exiting out of an IF...Then statement?

    I know it is frowned upon, but I would like to exit out of an If...Then statement if a condition is true. Will this cause me any problems down the road if I don't properly exiting with the End If.

    If Duration = 0 Or NoProduct Then
            Response = MsgBox("Product not selected.", 0, "Error Message")
            GoTo Finished   ' No product was chosen, exit out of procedure.
    End If
    
    '{ Other coding if a product is chosen  }
    
    
    Finished:
    Thanks for your response!

    Last edited by redsab; 06-16-2013 at 09:46 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1